From 19e9168c84825c87120cf7364a1d291634d0024f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 18 Nov 2008 19:30:50 +0000 Subject: [PATCH] add_dashboard_page() git-svn-id: http://svn.automattic.com/wordpress/trunk@9760 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 11b0fcd256..dff628d422 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -644,6 +644,10 @@ function add_users_page( $page_title, $menu_title, $access_level, $file, $functi return add_submenu_page( $parent, $page_title, $menu_title, $access_level, $file, $function ); } +function add_dashboard_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { + return add_submenu_page( 'index.php', $page_title, $menu_title, $access_level, $file, $function ); +} + function add_posts_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { return add_submenu_page( 'posts-new.php', $page_title, $menu_title, $access_level, $file, $function ); }