Skip to content
Browse files

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
  • Loading branch information...
1 parent daaed10 commit 6a13266c406559a078bd2aba2e92511ed1950ad0 PeteMall committed Dec 6, 2010
Showing with 10 additions and 8 deletions.
  1. +10 −8 wp-admin/themes.php
View
18 wp-admin/themes.php
@@ -71,16 +71,18 @@
<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
<?php endif; ?>
-<div class="wrap">
-<?php screen_icon(); ?>
+<div class="wrap"><?php
+screen_icon();
+if ( !is_multisite() ) : ?>
<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') ) {
- $href = is_multisite() ? network_admin_url( 'theme-install.php' ) : admin_url( 'theme-install.php' );
-?>
-<a href="<?php echo $href; ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a>
-<?php } ?>
+ <?php 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>
+ <?php endif;
+else : ?>
+<h2>
+<?php esc_html_e( $title ); ?>
+<?php endif; ?>
</h2>
<h3><?php _e('Current Theme'); ?></h3>

0 comments on commit 6a13266

Please sign in to comment.
Something went wrong with that request. Please try again.