Ticket #15525: 15525.4.patch
File 15525.4.patch, 1.1 KB (added by , 15 years ago) |
---|
-
wp-admin/themes.php
71 71 <div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div> 72 72 <?php endif; ?> 73 73 74 <div class="wrap"> 75 <?php screen_icon(); ?> 74 <div class="wrap"><?php 75 screen_icon(); 76 if ( !is_multisite() ) : ?> 76 77 <h2 class="nav-tab-wrapper"> 77 78 <a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a> 78 <?php 79 if ( 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 } ?> 79 <?php if ( current_user_can('install_themes') ) : ?> 80 <a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a> 81 <?php endif; 82 else : ?> 83 <h2> 84 <?php esc_html_e( $title ); ?> 85 <?php endif; ?> 84 86 </h2> 85 87 86 88 <h3><?php _e('Current Theme'); ?></h3>