Map 'index' to 'dashboard' for current screen. Fixes contextual help for the dashboard.

git-svn-id: https://develop.svn.wordpress.org/trunk@14089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-04-14 21:55:09 +00:00
parent 8e25b7d538
commit 977731745c
1 changed files with 6 additions and 0 deletions

View File

@ -3917,6 +3917,12 @@ function set_current_screen( $id = '' ) {
$current_screen = (object) $current_screen;
// Map index to dashboard
if ( 'index' == $current_screen->base )
$current_screen->base = 'dashboard';
if ( 'index' == $current_screen->id )
$current_screen->id = 'dashboard';
if ( 'edit' == $current_screen->id ) {
if ( empty($typenow) )
$typenow = 'post';