[wp-trac] [WordPress Trac] #37915: Customize: allow terms to be created in nav menus
WordPress Trac
noreply at wordpress.org
Sun Sep 11 15:39:13 UTC 2016
#37915: Customize: allow terms to be created in nav menus
-------------------------------------+--------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses:
-------------------------------------+--------------------
Comment (by celloexpressions):
If we do go with a shadow taxonomy in 4.7, one benefit is that we'll only
need to do it for ''new'' terms added in menus, which would reduce the
volume of drafted terms, at least. However, we'd have to register a
`_draft_` taxonomy for every `show_in_nav_menus` taxonomy, which could be
a lot of taxonomies. The alternative is to create one draft taxonomy for
each and store the actual taxonomy somewhere with each term, but that
could also get messy.
It's sounding like we will need some sort of `term_status` approach
eventually, as that will (likely?) create less breakage than using shadow
taxonomies for every taxonomy when we scale to allowing any term and its
meta to be previewed in the customizer. If we're okay with going that
route, we could look at an implementation here for 4.7 and save #37914 for
a future release and broader exploration of `term_status`.
https://github.com/xwp/wp-customize-terms could probably piggyback on the
nav menus approach for now, with plugins not being able to hook in as
described above.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37915#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list