[wp-trac] [WordPress Trac] #18166: Be able to amend the parent dropdown on the edit taxonomy term page
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 19 23:21:31 UTC 2011
#18166: Be able to amend the parent dropdown on the edit taxonomy term page
-------------------------+------------------------------
Reporter: leewillis77 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.2.1
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by kawauso):
Replying to [comment:2 leewillis77]:
> Actually - the patch is exactly what I need, I think perhaps the
description I used is misleading.
>
> I want to be able to amend the arguments passed to
wp_dropdown_categories. In the use case that led to me reporting this I'm
amending the depth parameter so that the end result is that the dropdown
list only contains top-level items.
>
> So while my use-case is to cause the contents of the drop-down to be
amended, I'm not actually looking to filter the output directly ...
Slightly bad wording on my part, the issue is that with your patch the
only value eventually passed to wp_dropdown_categories() is $taxonomy
(after filtering) since the first value passed to apply_filters() is the
one being filtered. You need to be passing the entire arguments array as
the first parameter. Also please make patches relative to the root
directory.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18166#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list