[wp-trac] [WordPress Trac] #13822: Menu items that get unpublished still appear
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 11 15:02:29 UTC 2010
#13822: Menu items that get unpublished still appear
--------------------------+-------------------------------------------------
Reporter: nacin | Owner: filosofo
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 3.0
Component: Menus | Version: 3.0
Severity: major | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by filosofo):
* keywords: => has-patch
Comment:
`sync-menu-item-status-to-orig-object.13822.diff` does the following:
* Renames `_wp_auto_add_pages_to_menu` to
`_wp_menu_changing_status_observer` and uses it to catch parent object
status changes in addition to new top-level page publishing.
* Makes what we've been calling "pending" menu items actually have
"pending" status instead of "draft" (duh?)
* If an associated post object becomes "draft" from "publish," the menu
item gets "draft" status.
* If an associated post object becomes "publish" from "draft" (re-
published), the menu item is re-published too.
* Pending menu items behave the same as before.
* Draft menu items' statuses are tied to their associated post objects;
in other words, unlike pending menu items, saving the menu does not change
a menu item's status from "draft" to "publish."
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13822#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list