[wp-trac] [WordPress Trac] #5267: Filter bloginfo_rss only passes one argument

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 27 11:48:04 GMT 2007


#5267: Filter bloginfo_rss only passes one argument
---------------------+------------------------------------------------------
 Reporter:  tzafrir  |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.3.2    
Component:  General  |     Version:  2.3      
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 According to [http://codex.wordpress.org/Plugin_API/Filter_Reference The
 codex] the filter bloginfo_rss should pass a second argument, $show, that
 tells exactly what blog info is called.

 However, in feed.php:


 {{{
 function bloginfo_rss($show = '') {
         echo apply_filters('bloginfo_rss', get_bloginfo_rss($show));
 }
 }}}

 Only the content argument is passed.

 As expected, when trying to use the second argument in the filter
 function, I receive a warning: Missing argument 2.

 I'm aware that one way to solve this is to remove the wrong part from the
 codex, but I'm hpoing more towards actually having that feature, becuase
 right now it makes it impossible for me to filter only
 bloginfo_rss('name'), for example.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5267>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list