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: http://core.svn.wordpress.org/trunk@20710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5e53687b9
commit
1963cc8070
|
@ -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') )
|
||||
|
|
Loading…
Reference in New Issue