Changeset 24048 for trunk/wp-admin/themes.php
- Timestamp:
- 04/22/2013 07:33:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r23871 r24048 160 160 foreach ( (array) $submenu['themes.php'] as $item) { 161 161 $class = ''; 162 if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] )162 if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || 'customize.php' == $item[2] ) 163 163 continue; 164 if ( 'customize.php' == $item[2] ) {165 if ( current_user_can( 'edit_theme_options' ) )166 $class = ' class="load-customize hide-if-no-customize"';167 else168 continue;169 }170 164 // 0 = name, 1 = capability, 2 = file 171 165 if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) ) … … 194 188 ?> 195 189 <div class="theme-options"> 196 <?php if ( $options ) : ?> 190 <?php if ( current_user_can( 'edit_theme_options' ) ) : ?> 191 <a id="customize-current-theme-link" href="<?php echo wp_customize_url(); ?>" class="load-customize hide-if-no-customize" title="<?php echo esc_attr( $customize_title ); ?>"><?php _e( 'Customize' ); ?></a> 192 <?php 193 endif; // edit_theme_options 194 if ( $options ) : 195 ?> 197 196 <span><?php _e( 'Options:' )?></span> 198 197 <ul>
Note: See TracChangeset
for help on using the changeset viewer.