Add a filter to wp_terms_checklist() that wraps the function's arguments.

Mainly designed to allow checked_ontop to be turned off.

props husobj.
fixes #20054.



git-svn-id: https://develop.svn.wordpress.org/trunk@20710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-05-03 01:15:18 +00:00
parent 0569761737
commit 75f4959b2a
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,8 @@ function wp_terms_checklist($post_id = 0, $args = array()) {
'taxonomy' => 'category',
'checked_ontop' => true
);
$args = apply_filters( 'wp_terms_checklist_args', $args, $post_id );
extract( wp_parse_args($args, $defaults), EXTR_SKIP );
if ( empty($walker) || !is_a($walker, 'Walker') )