[wp-trac] Re: [WordPress Trac] #901: apply_filters's handling of extra arguments is broken

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 17 23:46:14 GMT 2006


#901: apply_filters's handling of extra arguments is broken
----------------------------+-----------------------------------------------
       Id:  901             |      Status:  reopened                
Component:  Administration  |    Modified:  Mon Apr 17 23:46:14 2006
 Severity:  normal          |   Milestone:                          
 Priority:  normal          |     Version:  1.5                     
    Owner:  ryan            |    Reporter:  michel v                
----------------------------+-----------------------------------------------
Comment (by ryan):

 Works fine for me.

 {{{
 function blog_filter($string, $show) {
         echo "String: $string Show: $show <br />";
         return $string;
 }

 add_filter('bloginfo', 'blog_filter', 10, 2 );
 }}}

 You can't have any more than those two arguments since apply_filters() as
 called in bloginfo() supplies only two.

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


More information about the wp-trac mailing list