[wp-trac] [WordPress Trac] #14280: add_filter should accept an array of tags
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 15 14:57:39 UTC 2012
#14280: add_filter should accept an array of tags
-------------------------------------------------+-------------------------
Reporter: sivel | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch early needs-testing dev- |
feedback |
-------------------------------------------------+-------------------------
Changes (by scribu):
* status: new => closed
* resolution: => wontfix
* milestone: Future Release =>
Comment:
Marked #21591 as dup.
I don't see this:
{{{
add_action( array( 'sanitize_post', 'sanitize_user' ), 'my_sanitizer' );
}}}
as a significant enough improvement over this:
{{{
foreach ( array( 'sanitize_post', 'sanitize_user' ) as $hook ) {
add_action( $hook, 'my_sanitizer' );
}
}}}
It's the kind of syntactic sugar that makes you fat: tasty, but low in
nutritional value.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14280#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list