Code Duplication    Length = 5-6 lines in 2 locations

src/wp-admin/options.php 1 location

@@ 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'] ) {

src/wp-includes/class-wp-user-query.php 1 location

@@ 354-358 (lines=5) @@
351
352
		$roles = array();
353
		if ( isset( $qv['role'] ) ) {
354
			if ( is_array( $qv['role'] ) ) {
355
				$roles = $qv['role'];
356
			} elseif ( is_string( $qv['role'] ) && ! empty( $qv['role'] ) ) {
357
				$roles = array_map( 'trim', explode( ',', $qv['role'] ) );
358
			}
359
		}
360
361
		$role__in = array();