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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-04-14 21:55:09 +00:00
parent c4a677dea9
commit 9f32130e38
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';