WordPress.org

Make WordPress Core

Changeset 13591


Ignore:
Timestamp:
03/05/2010 06:20:41 AM (8 years ago)
Author:
dd32
Message:

Show the dashboard instead of Update Core page for the dashboard.. Adds a dummy menu in the case of multisite or superadmin. see #12517

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r13590 r13591  
    4444}
    4545
    46 if ( is_multisite() || is_super_admin() )
     46if ( is_multisite() || is_super_admin() ) {
    4747    $submenu[ 'index.php' ][0] = array( __('Dashboard'), 'read', 'index.php' );
    4848
    49 if ( is_multisite() )
    50     $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
    51 
    52 if ( is_super_admin() )
    53     $submenu[ 'index.php' ][10] = array( __('Updates'), 'install_plugins',  'update-core.php');
     49    if ( is_multisite() )
     50        $submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
     51   
     52    if ( is_super_admin() )
     53        $submenu[ 'index.php' ][10] = array( __('Updates'), 'install_plugins',  'update-core.php');
     54}
    5455
    5556$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
Note: See TracChangeset for help on using the changeset viewer.