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:
parent
c4a677dea9
commit
9f32130e38
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue