[wp-trac] [WordPress Trac] #33026: Add option filter for wp_dropdown_categories()
WordPress Trac
noreply at wordpress.org
Sat Jul 18 19:46:26 UTC 2015
#33026: Add option filter for wp_dropdown_categories()
-------------------------+-----------------------------
Reporter: theMikeD | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 4.2.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
-------------------------+-----------------------------
Changes (by boonebgorges):
* keywords: has-patch => needs-patch
* milestone: Awaiting Review => Future Release
Comment:
Thanks for the patch, theMikeD. A general filter on the args in
`wp_dropdown_categories()` is probably too general an solution here.
Elsewhere in the Dashboard interface, we filter the arguments *before*
they're passed to `wp_dropdown_categories()` (that's what
'taxonomy_parent_dropdown_args' etc do), so for consistency, let's do the
same thing here. https://core.trac.wordpress.org/browser/tags/4.2.2/src
/wp-admin/includes/meta-boxes.php?marks=504#L488
If it's put there, I'd say a better filter name is
'post_edit_category_parent_dropdown_args'.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33026#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list