Make WordPress Core


Ignore:
Timestamp:
12/06/2010 03:41:19 PM (13 years ago)
Author:
nacin
Message:

Link to network/update-core when running multisite. Remove theme/plugin editors from blog menu when running multisite. Redirect to network/* when accessing theme/plugin-install/editor. props ocean90, see #15525.

File:
1 edited

Legend:

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

    r16705 r16747  
    7474<div class="wrap">
    7575<?php screen_icon(); ?>
    76 <h2 class="nav-tab-wrapper"><a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a><?php if ( current_user_can('install_themes') ) { ?><a href="theme-install.php" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a><?php } ?></h2>
     76<h2 class="nav-tab-wrapper">
     77<a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a>
     78<?php
     79if ( current_user_can('install_themes') ) {
     80    $href = is_multisite() ? network_admin_url( 'theme-install.php' ) : admin_url( 'theme-install.php' );
     81?>
     82<a href="<?php echo $href; ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a>
     83<?php } ?>
     84</h2>
    7785
    7886<h3><?php _e('Current Theme'); ?></h3>
Note: See TracChangeset for help on using the changeset viewer.