Changeset 28025 for trunk/src/wp-admin/theme-install.php
- Timestamp:
- 04/07/2014 11:03:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-install.php
r27962 r28025 33 33 'new' => __( 'Newest Themes' ), 34 34 ); 35 36 $installed_themes = search_theme_directories(); 37 foreach ( $installed_themes as $k => $v ) { 38 if ( false !== strpos( $k, '/' ) ) { 39 unset( $installed_themes[ $k ] ); 40 } 41 } 35 42 36 43 wp_localize_script( 'theme', '_wpThemeSettings', array( … … 52 59 'error' => ( 'There was a problem trying to load the themes. Please, try again.' ), // @todo improve 53 60 ), 61 'installedThemes' => array_keys( $installed_themes ), 54 62 'browse' => array( 55 63 'sections' => $sections, … … 191 199 <a class="button button-secondary preview install-theme-preview" href="#"><?php esc_html_e( 'Preview' ); ?></a> 192 200 </div> 201 202 <# if ( data.installed ) { #> 203 <div class="theme-installed"><?php _e( 'Already Installed' ); ?></div> 204 <# } #> 193 205 </script> 194 206 … … 197 209 <div class="wp-full-overlay-header"> 198 210 <a href="#" class="close-full-overlay button-secondary"><?php _e( 'Close' ); ?></a> 211 <# if ( data.installed ) { #> 212 <a href="#" class="button button-primary theme-install disabled"><?php _e( 'Installed' ); ?></a> 213 <# } else { #> 199 214 <a href="{{ data.installURI }}" class="button button-primary theme-install"><?php _e( 'Install' ); ?></a> 215 <# } #> 200 216 </div> 201 217 <div class="wp-full-overlay-sidebar-content">
Note: See TracChangeset
for help on using the changeset viewer.