[wpmu-trac] [WordPress MU Trac] #747: Page Parent File Filter
WordPress MU Trac
wpmu-trac at lists.automattic.com
Thu Sep 25 14:49:56 GMT 2008
#747: Page Parent File Filter
------------------------+---------------------------------------------------
Reporter: lunabyte | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: WPMU 2.0
Component: component1 | Version: 2.0
Severity: normal | Keywords: has patch, menu filter, parent file filter
------------------------+---------------------------------------------------
At times someone may need to re-arrange the general menu structure in the
admin area, and move certain files under a new/different parent file.
With the parent file being explicitly set in each page, for example post-
new.php, if one were to move this file under a new menu to make sense with
their site, multiple core hacks must become involved so that when on that
page, the submenu is properly structured as desired.
In order to prevent multiple, unnecessary hacks, and to preserve a logical
upgrade path, a simple filter on the $parent_file variable can be applied
in menu-header.php, which can then be altered to properly set the
parent_file of the page if indeed it was moved around.
While the global variables of menu and submenu can be easily altered, the
explicit setting of the parent_file makes it more of a hassle to rearrange
menus. It becomes a natural addition to be able to filter the parent_file,
and thus complete the feature for plugins to be able to control the admin
menu structure as desired.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/747>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list