@@ 60-65 (lines=6) @@ | ||
57 | if ( ! empty($_GET[ 'adminhash' ] ) ) { |
|
58 | $new_admin_details = get_option( 'adminhash' ); |
|
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' ]) ) { |
|
61 | update_option( 'admin_email', $new_admin_details[ 'newemail' ] ); |
|
62 | delete_option( 'adminhash' ); |
|
63 | delete_option( 'new_admin_email' ); |
|
64 | $redirect = 'options-general.php?updated=true'; |
|
65 | } |
|
66 | wp_redirect( admin_url( $redirect ) ); |
|
67 | exit; |
|
68 | } elseif ( ! empty( $_GET['dismiss'] ) && 'new_admin_email' == $_GET['dismiss'] ) { |
@@ 308-312 (lines=5) @@ | ||
305 | ||
306 | $roles = array(); |
|
307 | if ( isset( $qv['role'] ) ) { |
|
308 | if ( is_array( $qv['role'] ) ) { |
|
309 | $roles = $qv['role']; |
|
310 | } elseif ( is_string( $qv['role'] ) && ! empty( $qv['role'] ) ) { |
|
311 | $roles = array_map( 'trim', explode( ',', $qv['role'] ) ); |
|
312 | } |
|
313 | } |
|
314 | ||
315 | $role__in = array(); |