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:
westi 2010-01-31 17:16:00 +00:00
parent 1e5c83ab2a
commit 398a8ca6ac
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '' ) {
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 = '' ) {