[theme-reviewers] Usage of wp_title filter.

esmi at quirm dot net esmi at quirm.net
Wed Oct 17 15:26:21 UTC 2012


on 17/10/2012 15:27 Philip M. Hofer (Frumph) said the following:
> That is precisely how to do it.  But you should also return the original
> $title being passed through the filter

Good point. I noticed that you're using is_feed() too.

I've corrected the example in the Codex page to use:

     if( !is_feed() ) return get_bloginfo( 'name' ) . $page_type . 
$title . $page_num;
     else return $old_title;

<http://codex.wordpress.org/Plugin_API/Filter_Reference/wp_title#Example>

Mel
-- 
http://quirm.net
http://blackwidows.co.uk


More information about the theme-reviewers mailing list