Ready to get started?Download WordPress


Theme Mentor
wp_head before closing head tag error (3 posts)

  1. @mercime
    Volunteer Moderator
    Posted 1 year ago #

    Thank you for the plugin.

    Testing Theme Mentor on the current BuddyPress Default theme (BP 1.6.4), there are notices which are valid but one notice should not be included in results:
    wp_head call should be right before the closing head tag. at file header.php, line 13

    wp_head is called right before closing head tag as you can see here https://buddypress.trac.wordpress.org/browser/tags/1.6.4/bp-themes/bp-default/header.php



  2. nofearinc
    Plugin Author

    Posted 1 year ago #

    Thank you for the remark, I am still thinking how to handle similar responses as I'm trying to keep it low on resources (regular expressions are expensive, especially when they're looping through many files) and there are few different edge cases, such as blank line (as in this very example) and the various comment tags - //, /* ... */ and # .

    I'll probably iterate between both lines and ignore the ones starting with a comment or blank lines (can't promise exact update date).

  3. @mercime
    Volunteer Moderator
    Posted 1 year ago #

    @nofearinc no worries. The plugin is great. Looking forward to more awesomeness :-)

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic