[wp-trac] [WordPress Trac] #37915: Customize: allow terms to be created in nav menus

WordPress Trac noreply at wordpress.org
Sun Sep 11 02:13:15 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 boonebgorges):

 A very brief follow-up, before I forget: Third-party integration into the
 term creation/deletion process is likely to be a point of friction here,
 both in the short and long term. Imagine you have a plugin that does
 something like this:

 {{{
 add_action( 'create_term', function( $term_id, $tt_id, $taxonomy ) {
     if ( 'foo' === $taxonomy ) {
         do some stuff
     }
 }, 10, 3 );
 }}}

 If draft terms are in a "shadow" taxonomy, then they won't be identified
 properly by this logic. This might cause bugs in some cases. On the other
 hand, if and when we have a `term_status` system, so that draft terms are
 actually created in the proper taxonomy, they *will* be identified as
 terms by this logic. And this might cause bugs of its own! There's
 probably no way to solve this without some change in expected behavior for
 plugins, and whatever we do, we should be sure to create documentation to
 explain the potential fallout to developers.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37915#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list