WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] get stylesheet uri - correction to Codex? (5 posts)

  1. tedinoz
    Member
    Posted 2 years ago #

    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(); ?>`

  2. Whoops, yeah, that's a typo ;) You can fix it yourself. Just login with the same user/password you used here.

  3. tedinoz
    Member
    Posted 2 years ago #

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

  4. Curtiss Grymala
    Member
    Posted 2 years ago #

    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.

  5. 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. :D )

Topic Closed

This topic has been closed to new replies.

About this Topic