WordPress.org

Make WordPress Core

Changeset 21200


Ignore:
Timestamp:
06/30/12 12:55:09 (22 months ago)
Author:
nacin
Message:

Un-indent after [21198]. see #19824.

File:
1 edited

Legend:

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

    r21199 r21200  
    150150} 
    151151 
    152     $count = ''; 
    153     if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) { 
    154         if ( ! isset( $update_data ) ) 
    155             $update_data = wp_get_update_data(); 
    156         $count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n($update_data['counts']['plugins']) . "</span></span>"; 
    157     } 
    158  
    159     $menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); 
    160  
    161     $submenu['plugins.php'][5]  = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' ); 
    162  
    163         if ( ! is_multisite() ) { 
    164             /* translators: add new plugin */ 
    165             $submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' ); 
    166             $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 
    167         } 
     152$count = ''; 
     153if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) { 
     154    if ( ! isset( $update_data ) ) 
     155        $update_data = wp_get_update_data(); 
     156    $count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n($update_data['counts']['plugins']) . "</span></span>"; 
     157} 
     158 
     159$menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); 
     160 
     161$submenu['plugins.php'][5]  = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' ); 
     162 
     163    if ( ! is_multisite() ) { 
     164        /* translators: add new plugin */ 
     165        $submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' ); 
     166        $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 
     167    } 
    168168 
    169169unset( $update_data ); 
Note: See TracChangeset for help on using the changeset viewer.