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:
parent
8e25b7d538
commit
977731745c
|
@ -3917,6 +3917,12 @@ function set_current_screen( $id = '' ) {
|
||||||
|
|
||||||
$current_screen = (object) $current_screen;
|
$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 ( 'edit' == $current_screen->id ) {
|
||||||
if ( empty($typenow) )
|
if ( empty($typenow) )
|
||||||
$typenow = 'post';
|
$typenow = 'post';
|
||||||
|
|
Loading…
Reference in New Issue