Fix Docblock syntax for the taxonomy_parent_dropdown_args
filter.
See [30998]. See #31888 git-svn-id: https://develop.svn.wordpress.org/trunk@32003 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ddb33c9aed
commit
f76ed758b8
@ -482,7 +482,7 @@ do_action( "{$taxonomy}_term_new_form_tag" );
|
||||
* Filter the taxonomy parent drop-down on the Edit Term page.
|
||||
*
|
||||
* @since 3.7.0
|
||||
* @since 4.2.0 Added $context parameter.
|
||||
* @since 4.2.0 Added `$context` parameter.
|
||||
*
|
||||
* @param array $dropdown_args {
|
||||
* An array of taxonomy parent drop-down arguments.
|
||||
@ -500,6 +500,7 @@ do_action( "{$taxonomy}_term_new_form_tag" );
|
||||
* @param string $context Filter context. Accepts 'new' or 'edit'.
|
||||
*/
|
||||
$dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' );
|
||||
|
||||
wp_dropdown_categories( $dropdown_args );
|
||||
?>
|
||||
<?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user