Changeset 16754
- Timestamp:
- 12/06/2010 06:15:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r16747 r16754 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
Note: See TracChangeset
for help on using the changeset viewer.