From 95b956bfb950365b2064e6450a57e64994a5b4ad Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 31 Jan 2010 17:16:00 +0000 Subject: [PATCH] Fix add_pages_page to use the correct parent menu. Fixes #12100. git-svn-id: https://develop.svn.wordpress.org/trunk@12913 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 3466e291ab..117b755bbf 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -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 = '' ) {