WordPress.org

Make WordPress Core

Changeset 14089


Ignore:
Timestamp:
04/14/10 21:55:09 (5 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14065 r14089  
    39183918    $current_screen = (object) $current_screen; 
    39193919 
     3920    // Map index to dashboard 
     3921    if ( 'index' == $current_screen->base ) 
     3922        $current_screen->base = 'dashboard'; 
     3923    if ( 'index' == $current_screen->id ) 
     3924        $current_screen->id = 'dashboard'; 
     3925 
    39203926    if ( 'edit' == $current_screen->id ) { 
    39213927        if ( empty($typenow) ) 
Note: See TracChangeset for help on using the changeset viewer.