Changeset 29170 for trunk/src/wp-admin/customize.php
- Timestamp:
- 07/14/2014 07:00:24 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/customize.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/customize.php
r29135 r29170 13 13 require_once( dirname( __FILE__ ) . '/admin.php' ); 14 14 15 if ( ! current_user_can( ' edit_theme_options' ) ) {15 if ( ! current_user_can( 'customize' ) ) { 16 16 wp_die( __( 'Cheatin’ uh?' ) ); 17 17 } … … 25 25 } 26 26 if ( ! $return ) { 27 $return = $url; 27 if ( $url ) { 28 $return = $url; 29 } elseif ( current_user_can( 'edit_theme_options' ) || current_user_can( 'switch_themes' ) ) { 30 $return = admin_url( 'themes.php' ); 31 } else { 32 $return = admin_url(); 33 } 28 34 } 29 35 … … 113 119 ?> 114 120 <span class="spinner"></span> 115 <a class="customize-controls-close" href="<?php echo esc_url( $return ? $return : admin_url( 'themes.php' )); ?>">121 <a class="customize-controls-close" href="<?php echo esc_url( $return ); ?>"> 116 122 <span class="screen-reader-text"><?php _e( 'Cancel' ); ?></span> 117 123 </a>
Note: See TracChangeset
for help on using the changeset viewer.