Changeset 52431 for trunk/src/wp-admin/options.php
- Timestamp:
- 01/03/2022 09:26:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r51475 r52431 58 58 $new_admin_details = get_option( 'adminhash' ); 59 59 $redirect = 'options-general.php?updated=false'; 60 if ( is_array( $new_admin_details ) && hash_equals( $new_admin_details['hash'], $_GET['adminhash'] ) && ! empty( $new_admin_details['newemail'] ) ) { 60 61 if ( is_array( $new_admin_details ) 62 && hash_equals( $new_admin_details['hash'], $_GET['adminhash'] ) 63 && ! empty( $new_admin_details['newemail'] ) 64 ) { 61 65 update_option( 'admin_email', $new_admin_details['newemail'] ); 62 66 delete_option( 'adminhash' ); … … 64 68 $redirect = 'options-general.php?updated=true'; 65 69 } 70 66 71 wp_redirect( admin_url( $redirect ) ); 67 72 exit; … … 74 79 } 75 80 76 if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) {81 if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' !== $action ) { 77 82 wp_die( 78 83 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . … … 184 189 * they can be edited, otherwise they're locked. 185 190 */ 186 if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) { 191 if ( get_option( 'upload_url_path' ) 192 || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) 193 ) { 187 194 $allowed_options['media'][] = 'upload_path'; 188 195 $allowed_options['media'][] = 'upload_url_path';
Note: See TracChangeset
for help on using the changeset viewer.