[wp-trac] [WordPress Trac] #23316: Top level admin sidebar menu items with conflicting positions bury one another
WordPress Trac
noreply at wordpress.org
Sat Oct 31 20:23:33 UTC 2015
#23316: Top level admin sidebar menu items with conflicting positions bury one
another
------------------------------+-----------------------------
Reporter: beautomated | Owner: chriscct7
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Plugins | Version: 3.5.1
Severity: major | Resolution:
Keywords: has-patch commit | Focuses: administration
------------------------------+-----------------------------
Comment (by chriscct7):
Basic test code:
{{{#!php
add_action( 'admin_menu', 'register_my_custom_menu_page' );
function register_my_custom_menu_page(){
add_menu_page( 'custom menu title', 'custom menu',
'manage_options', 'custompage', 'my_custom_menu_page', '', 63 );
}
function my_custom_menu_page(){
echo "Admin Page Test";
}
add_action( 'admin_menu', 'register_my_custom_menu_page2' );
function register_my_custom_menu_page2(){
add_menu_page( 'custom menu title2', 'custom menu 2',
'manage_options', 'custompage2', 'my_custom_menu_page2', '', 63 );
}
function my_custom_menu_page2(){
echo "Admin Page Test2";
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23316#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list