[wp-trac] Re: [WordPress Trac] #7214: Allow top-level menu page to
use a slug, rather than filename
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 13 08:19:51 GMT 2008
#7214: Allow top-level menu page to use a slug, rather than filename
-------------------------------------+--------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.9
Component: Administration | Version: 2.6
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Comment (by DD32):
Any chance of this getting in?
By the looks of it, Only the changes to {{{wp-admin/admin.php}}} need to
be applied to the current trunk, That is:
{{{
#!diff
Index: wp-admin/admin.php
===================================================================
--- wp-admin/admin.php (revision 8124)
+++ wp-admin/admin.php (working copy)
@@ -45,7 +45,8 @@
// Handle plugin admin pages.
if (isset($plugin_page)) {
- $page_hook = get_plugin_page_hook($plugin_page, $pagenow);
+ if( ! $page_hook = get_plugin_page_hook($plugin_page, $pagenow) )
+ $page_hook = get_plugin_page_hook($plugin_page,
$plugin_page);
if ( $page_hook ) {
do_action('load-' . $page_hook);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7214#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list