Use add_query_arg() in menu_page_url(). fixes #13923.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d6d546f33
commit
eb4c72e7d9
|
@ -1187,7 +1187,7 @@ function menu_page_url($menu_slug, $echo = true) {
|
|||
|
||||
if ( isset( $_parent_pages[$menu_slug] ) ) {
|
||||
if ( $_parent_pages[$menu_slug] ) {
|
||||
$url = admin_url($_parent_pages[$menu_slug] . '?page=' . $menu_slug);
|
||||
$url = admin_url( add_query_arg( 'page', $menu_slug, $_parent_pages[$menu_slug] ) );
|
||||
} else {
|
||||
$url = admin_url('admin.php?page=' . $menu_slug);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue