diff --git src/wp-admin/customize.php src/wp-admin/customize.php
index 6ee2de0..3aaa932 100644
|
|
|
if ( $return ) { |
| 26 | 26 | if ( ! $return ) { |
| 27 | 27 | if ( $url ) { |
| 28 | 28 | $return = $url; |
| 29 | | } elseif ( current_user_can( 'edit_theme_options' ) || current_user_can( 'switch_themes' ) ) { |
| 30 | | $return = admin_url( 'themes.php' ); |
| 31 | | } else { |
| | 29 | } elseif ( |
| | 30 | ( current_user_can( 'edit_theme_options' ) || current_user_can( 'switch_themes' ) ) || |
| | 31 | ( isset( $_SERVER['HTTP_REFERER'] ) && 0 === strpos( wp_unslash( $_SERVER['HTTP_REFERER'] ), admin_url() ) ) |
| | 32 | ) { |
| 32 | 33 | $return = admin_url(); |
| | 34 | } else { |
| | 35 | $return = home_url(); |
| 33 | 36 | } |
| 34 | 37 | } |
| 35 | 38 | |