[wp-trac] [WordPress Trac] #35250: Enable developer to omit "internal" taxonomies from return value of get_taxonomies()
WordPress Trac
noreply at wordpress.org
Mon Jan 25 21:42:22 UTC 2016
#35250: Enable developer to omit "internal" taxonomies from return value of
get_taxonomies()
----------------------------------+------------------------------
Reporter: MikeSchinkel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-docs | Focuses:
----------------------------------+------------------------------
Comment (by MikeSchinkel):
Replying to [comment:4 dd32]:
> Rather, anyone who is listing taxonomies, should probably only list what
makes sense in their context - for example, only showing taxonomies with
`public => true`.
Sadly, that does not follow
[https://en.wikipedia.org/wiki/Robustness_principle '''Postel's Law''']:
> ''Be conservative in what you do, be liberal in what you accept from
others
Depending on others to do what they ''"should"'' be doing, especially in
the WordPress plugin and theme ecosystem, is just asking for trouble.
Much better for a developer to take steps to ensure someone else can't
create a problem rather than hope that they do not.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35250#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list