• Not so much a bug, but a note:

    If your theme uses get_the_title and you want to use the title in a HTML attribute (eg: title, alt, whatever), you should look at wrapping it in at least the functions esc_attr() and possibly strip_tags() like so:

    esc_attr( strip_tags( get_the_title() ) );

    PS: Might be worth adding this to the FAQ, as I always see theme authors complain… “oh but we use get_the_title() so we can’t use the_title_attribute(). You’ll just have to live with it.”

    PPS: Keep up the good work.

    https://www.ads-software.com/plugins/wp-typography/

  • The topic ‘Note for theme authors (for FAQ?)’ is closed to new replies.