[wp-trac] [WordPress Trac] #21949: Allow private taxonomies (public = false)
WordPress Trac
noreply at wordpress.org
Sat Nov 7 14:17:33 UTC 2015
#21949: Allow private taxonomies (public = false)
--------------------------------+---------------------------
Reporter: wpsmith | Owner: boonebgorges
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.4
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch rest-api | Focuses:
--------------------------------+---------------------------
Changes (by Chouby):
* status: closed => reopened
* resolution: fixed =>
Comment:
I'd like to reopen this ticket as it introduces a backward
incompatibility.
In WP 4.3.1, setting `'public' => false`, `'query_var' => 'lang'` allows
to completely hide the taxonomy on admin side and to query the taxonomy on
frontend.
In WP 4.4, I need to set `'public' => true` in order to be able to query
the taxonomy on frontend but setting `'show_ui' => false` is not
sufficient to completely hide the taxonomy on admin side. The taxonomy
appears among the nav menus metaboxes. This is confusing for Polylang
users (I already got some feedback from a user testing the dev version of
Polylang with WP 4.4 beta).
#34491 is one solution to solve this backward compatibility issue.
Another solution could be to replace `'public' => false` by `'show_ui' =>
false` everywhere on admin side, but I fear that it could introduce other
side effects.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21949#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list