[wp-trac] Re: [WordPress Trac] #8640: 2 new functions for Plugin
API.
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 17 02:50:11 GMT 2009
#8640: 2 new functions for Plugin API.
---------------------------+------------------------------------------------
Reporter: momo360modena | Owner: ShaneF
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.8
Component: Plugins | Version: 2.7
Severity: minor | Keywords: has-patch needs-testing commit
---------------------------+------------------------------------------------
Comment(by jbsil):
If we're going to go down this road, why not allow the function parameter
to be an array of function names as well?
I.E. Change
{{{
foreach ( $filters as $filter ) {
add_filter($filter, 'strip_tags');
add_filter($filter, 'trim');
add_filter($filter, 'wp_filter_kses');
add_filter($filter, 'wp_specialchars', 30);
}
}}}
to
{{{
add_filters($filers, array('strip_tags', 'trim', 'wp_filter_kses',
'wp_specialchars'), array(null,null,null,30));
}}}
or at least
{{{
add_filters($filters, array('strip_tags', 'trim', 'wp_filter_kses'));
add_filters($filters, 'wp_specialchars', 30);
}}}
or ideally
{{{
add_filters($filters, array('strip_tags', 'trim', 'wp_filter_kses',
array('wp_specialchars', 30)));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8640#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list