Too aggressive check for wp_title()
-
Great work on this plugin guys, it is SO useful and has helped me become a better theme developer – thanks!
Just one small thing I’ve noticed – the <title></title> content check is too aggressive, it will allow:
if ( !function_exists( '_wp_render_title_tag' ) ) { ?> <title> <?php wp_title( '|', true, 'right' ); ?> </title> <?php }
But will fail with the following code:
if ( !function_exists( '_wp_render_title_tag' ) ) { echo '<title>'; wp_title( '|', true, 'right' ); echo '</title>' . "\n"; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Too aggressive check for wp_title()’ is closed to new replies.