[wp-trac] [WordPress Trac] #34055: the_taxonomies lacks a filter
WordPress Trac
noreply at wordpress.org
Wed Oct 7 19:58:21 UTC 2015
#34055: the_taxonomies lacks a filter
-------------------------+-----------------------------
Reporter: Chouby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-------------------------+-----------------------------
Changes (by Chouby):
* keywords: needs-patch needs-unit-tests reporter-feedback => has-patch
Comment:
Replying to [comment:4 boonebgorges]:
> It appears within a `foreach ( $taxonomies )` loop, but it doesn't
accept the taxonomy as a parameter. The filter name itself is a bit odd.
Putting the filter inside the loop was indeed not very clever.
> I realize you probably want to filter the data before the markup is
generated.
Yes. But my intention was not to filter the list of terms but the list of
taxonomies. The goal is to remove non-public taxonomies, not individual
terms. Thus, in [attachment:34055.2.patch], I put the filter before the
loop. I also included the second filter that you proposed.
if you believe that it is preferrable to filter everything then I guess
that your proposal is the way to go.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34055#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list