Fix add_pages_page to use the correct parent menu. Fixes #12100.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1e5c83ab2a
commit
398a8ca6ac
|
@ -793,7 +793,7 @@ function add_links_page( $page_title, $menu_title, $access_level, $file, $functi
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_pages_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
|
function add_pages_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
|
||||||
return add_submenu_page( 'edit-pages.php', $page_title, $menu_title, $access_level, $file, $function );
|
return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $access_level, $file, $function );
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_comments_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
|
function add_comments_page( $page_title, $menu_title, $access_level, $file, $function = '' ) {
|
||||||
|
|
Loading…
Reference in New Issue