[wp-trac] [WordPress Trac] #22256: Hook namespacing

WordPress Trac noreply at wordpress.org
Tue Oct 23 13:01:22 UTC 2012


#22256: Hook namespacing
-------------------------+------------------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Changes (by knutsp):

 * cc: knut@… (added)


Comment:

 I like the idea, but not the separator thing. Programming history is
 packed with failed string separators, like the space on a command line,
 commas, semicolons and so on. Such will some day create the need for
 quoting and we will always have to parse the string. Soon we have to
 {{{
 add_action( '"some_colon:action":"pre:fix"', array() )
 }}}
 To avoid that, introduce
 {{{
 wp_add_action( $name, $object, $function, $prefix )
 }}}
 as an alias and then deprecate add_action in the long run.

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


More information about the wp-trac mailing list