[wp-trac] [WordPress Trac] #20956: Navigation changes: Posts/Pages
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 14 16:15:02 UTC 2012
#20956: Navigation changes: Posts/Pages
-------------------------+------------------------------
Reporter: jane | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: UI | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by Mamaduka):
Replying to [comment:4 nacin]:
>
> Re-ordering the $menu array is not going to be easy — I could absolutely
envision a plugin doing `unset( $menu[15] )` to get rid of Links, which
would now get rid of Media. We didn't have remove_menu_page() and
remove_submenu_page() until only a few versions ago. Unless we can come up
with something surgical, this will probably necessitate doing quite a bit
of changes to the "$menu" "API".
Right, this example has backward compatibility issues. We will have same
issue without re-ordering other menus and only changing Pages menu order
e.g `$menu[6]`, if plugins are removing Pages with `unset( $menu[20 )`.
(which I think would be much rare case that with Links).
Anyway more backward compatible option would be great.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20956#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list