[wp-trac] [WordPress Trac] #38072: Eliminate placeholder nav menu items in favor of auto-drafts in Customizer

WordPress Trac noreply at wordpress.org
Sat Sep 17 05:47:04 UTC 2016


#38072: Eliminate placeholder nav menu items in favor of auto-drafts in Customizer
-------------------------+-----------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------
Changes (by celloexpressions):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 +1. I would probably prefer to wait for #38015 so that we could also take
 a similar approach for new menu terms at the same time. As far as I can
 remember from the original solution with orphaned drafts, they essentially
 work the same as auto drafts for nav menu item posts. However, the
 approach outlined here would be good for parity with the way new pages are
 managed in menus and eventually for post editing. Now that there isn't an
 Ajax call to add items, on the user side we'd need to come up with a way
 to keep that from slowing things down; perhaps we could update all items
 that were added with a single Ajax call when the add-items panel is
 closed. Essentially, using a combination of auto drafts and placeholders.

 The `intval` is probably a good idea for now, as this will require quite a
 bit of refactoring.

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


More information about the wp-trac mailing list