Support » Requests and Feedback » get stylesheet uri – correction to Codex?

  • Resolved tedinoz


    This is a minor thing.
    Issue: The usage example for ‘get stylesheet uri‘ contains a PHP syntax error. There is a semi-colon missing after the function.
    <?php get_stylesheet_uri() ?>

    Solution/Correction: Insert a semi-colon immediately after the function, like this <?php get_stylesheet_uri(); ?>`

Viewing 4 replies - 1 through 4 (of 4 total)
  • Whoops, yeah, that’s a typo 😉 You can fix it yourself. Just login with the same user/password you used here.

    I fixed it. Giving back to the WordPress community one semi-colon at a time!

    FYI, within PHP, it’s perfectly acceptable to omit the semi-colon when the code is a single line, and the opening & closing PHP tags are on the same line as the code. It’s actually quite common.

    Yeah, but if you use it and its not the only line… Better to have the semi-colon in there for broad spectrum usage 😉 Not everyone is Nacin after all.

    (tedinoz, I really love your tag line there. One semi-colon at a time is wonderful. 😀 )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘get stylesheet uri – correction to Codex?’ is closed to new replies.