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

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 21 12:09:36 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 Denis-de-Bernardy):

 Right. But as I mentioned in my previous comment... if the idea evolves
 into a context that gets passed as a string, what difference does it make
 between:

  - adding a filter to wp_parse_args, which would be called only when a
 context is provided (or always called with an empty string as context if
 none is supplied)
  - adding the missing filter where doing the above would seem useful, and
 spare ourselves new mystifyingly abstract filters

 Intuitively, I'd initially consider for the first option due to its
 elegance; and end up opting for second for simplicity and performance's
 sake.

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


More information about the wp-trac mailing list