[wp-trac] [WordPress Trac] #24531: Add subpage_file Filter Before Admin Menu
WordPress Trac
noreply at wordpress.org
Fri Jun 7 10:53:36 UTC 2013
#24531: Add subpage_file Filter Before Admin Menu
----------------------------+-----------------------------
Reporter: Nessworthy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: minor | Keywords:
----------------------------+-----------------------------
For users extending the back end of wordpress, sometimes custom pages
added to the main menu will not be flagged as the current page because of
unexpected aspects such as additional GET data.
The problem is, setting this directly using a filter like {{{admin_menu}}}
does not work due to {{{$subpage_file}}} being set later on (needs
confirming), nor does it make sense due to context.
At the top of {{{menu-header.php}}}, there is a filter called
{{{parent_file}}}, used to allow plugins/themes to move the submenu tabs
around, a suggestion would be to add a {{{subpage_file}}} filter, allowing
plugins and the theme to modify the compared url to check the current
page.
Would add a patch, but away from my development environment.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24531>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list