[wp-trac] [WordPress Trac] #11212: Add filter to wp_parse_args()

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 6 17:22:51 UTC 2009


#11212: Add filter to wp_parse_args()
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:                
     Type:  enhancement   |      Status:  new           
 Priority:  lowest        |   Milestone:  Future Release
Component:  General       |     Version:  2.9           
 Severity:  normal        |    Keywords:  has-patch     
--------------------------+-------------------------------------------------

Comment(by westi):

 I'm not a big fan of this.

 I think that is is better to have targeted filters which are much safer
 for plugins to use.

 If we add this filter  every thing that is hooked on to it is going to
 have to check the context which is a really bad idea.

 The more specifically targeted a filter the better.

 If the filter was specific to the function being called that would be much
 more sensible - e.g. wp_parse_args_function_name

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11212#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list