[Resolved] Bug with HTML tags in site description

Home Forums Support [Resolved] Bug with HTML tags in site description

Home Forums Support Bug with HTML tags in site description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #217431
    Rene

    Hello everyone,
    Just wanted to let you know that there is a tiny bug in the template-tags.php regarding the use of html tags in the site description.

    In the template-tags.php it says:
    <?php echo html_entity_decode( bloginfo( 'description' ) ); ?>

    when it actually should say:
    <?php echo html_entity_decode( get_bloginfo( 'description' ) ); ?>

    This way HTML tags in the site description (e.g. <br> ) will actually be interpreted as HTML and not just be printed out.

    Oh and I love that theme. Great work really!

    Cheers
    Rene

    #217452
    Tom
    Lead Developer
    Lead Developer

    Interesting – thanks for letting me know! I’ll test this out and add it to the next version 🙂

    #217565
    Tom
    Lead Developer
    Lead Developer

    I’ve made this change. You can grab the latest code from our repo: https://github.com/tomusborne/GeneratePress

    Thanks!

    #217630
    Rene

    You’re welcome! :]

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.