Changeset 26529 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 12/02/2013 06:45:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r26470 r26529 377 377 */ 378 378 function wp_prepare_themes_for_js( $themes = null ) { 379 $prepared_themes = array(); 380 $current_theme = get_stylesheet(); 381 379 382 if ( null === $themes ) { 380 383 $themes = wp_get_themes( array( 'allowed' => true ) ); 381 }382 383 $prepared_themes = array();384 $current_theme = get_stylesheet();384 if ( ! isset( $themes[ $current_theme ] ) ) { 385 $themes[ $current_theme ] = wp_get_theme(); 386 } 387 } 385 388 386 389 $updates = array(); … … 416 419 'actions' => array( 417 420 'activate' => current_user_can( 'switch_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=activate&stylesheet=' . $encoded_slug ), 'switch-theme_' . $slug ) : null, 418 'customize'=> current_user_can( 'edit_theme_options' ) ? admin_url( 'customize.php?theme=' . $encoded_slug ) : null,421 'customize'=> current_user_can( 'edit_theme_options' ) ? wp_customize_url( $slug ) : null, 419 422 'delete' => current_user_can( 'delete_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=delete&stylesheet=' . $encoded_slug ), 'delete-theme_' . $slug ) : null, 420 423 ),
Note: See TracChangeset
for help on using the changeset viewer.