mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
Hide tabs on site admin themes screen for multisite. See #15525
git-svn-id: http://svn.automattic.com/wordpress/trunk@16754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
daaed10ca0
commit
6a13266c40
@ -71,16 +71,18 @@ require_once('./admin-header.php');
|
|||||||
<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
|
<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap"><?php
|
||||||
<?php screen_icon(); ?>
|
screen_icon();
|
||||||
|
if ( !is_multisite() ) : ?>
|
||||||
<h2 class="nav-tab-wrapper">
|
<h2 class="nav-tab-wrapper">
|
||||||
<a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a>
|
<a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a>
|
||||||
<?php
|
<?php if ( current_user_can('install_themes') ) : ?>
|
||||||
if ( current_user_can('install_themes') ) {
|
<a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a>
|
||||||
$href = is_multisite() ? network_admin_url( 'theme-install.php' ) : admin_url( 'theme-install.php' );
|
<?php endif;
|
||||||
?>
|
else : ?>
|
||||||
<a href="<?php echo $href; ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a>
|
<h2>
|
||||||
<?php } ?>
|
<?php esc_html_e( $title ); ?>
|
||||||
|
<?php endif; ?>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<h3><?php _e('Current Theme'); ?></h3>
|
<h3><?php _e('Current Theme'); ?></h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user