Changeset 35483 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 11/01/2015 06:39:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r34651 r35483 526 526 } 527 527 528 $customize_action = null; 529 if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { 530 $customize_action = esc_url( add_query_arg( 531 array( 532 'return' => urlencode( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 533 ), 534 wp_customize_url( $slug ) 535 ) ); 536 } 537 528 538 $prepared_themes[ $slug ] = array( 529 539 'id' => $slug, … … 541 551 'actions' => array( 542 552 'activate' => current_user_can( 'switch_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=activate&stylesheet=' . $encoded_slug ), 'switch-theme_' . $slug ) : null, 543 'customize' => ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) ? wp_customize_url( $slug ) : null,553 'customize' => $customize_action, 544 554 'delete' => current_user_can( 'delete_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=delete&stylesheet=' . $encoded_slug ), 'delete-theme_' . $slug ) : null, 545 555 ),
Note: See TracChangeset
for help on using the changeset viewer.