Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#13579 closed defect (bug) (fixed)

New Pending Menu Item Behavior

Reported by: filosofo's profile filosofo Owned by: filosofo's profile filosofo
Milestone: 3.0 Priority: high
Severity: blocker Version: 3.0
Component: Menus Keywords:
Focuses: Cc:

Description

Per a discussion in #wordpress-dev, menu items need to have the following behavior:

JavaScript Fully Working Behavior

When a user adds a menu item to a menu, if the menu is not saved then all changes are lost on the next page load, including the fact that the "draft" menu item is associated with this particular menu.

(Current behavior keeps the "draft" menu item in a draft state)

JavaScript Not Available Behavior

Submitted request for a new menu item adds it to the current menu as "draft," with a visual "pending" text on that menu item and a message in the standard top-of-page message area that says something to the effect of "You must click save to use menus."

Back-end Functionality

  • XHR-submitted menu item creation requests leave menu items orphaned, so a new page load does not show any associated "draft" menu items.
  • Non-XHR-submitted menu item creation requests do associate the draft menu item with the menu.
  • Orphaned draft menu items are deleted after 7 days.

Attachments (2)

pending-menu-items.13579.diff (9.8 KB) - added by filosofo 14 years ago.
pending-menu-items.13579.2.diff (10.9 KB) - added by filosofo 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @filosofo
14 years ago

#13525 was the ticket that originally mentioned this issue

#2 @ocean90
14 years ago

  • Cc ocean90@… added

#3 @nacin
14 years ago

(In [15008]) New pending menu item behavior. props filosofo, see #13579.

#4 @nacin
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Another one bites the dust.

Note: See TracTickets for help on using tickets.