diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 50ee0ad111..1f85ec6c75 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -282,11 +282,13 @@ do_action( 'customize_controls_print_scripts' ); } // Pass to frontend the Customizer construct being deeplinked - if ( isset( $_GET['autofocus'] ) && is_array( $_GET['autofocus'] ) ) { + if ( isset( $_GET['autofocus'] ) ) { $autofocus = wp_unslash( $_GET['autofocus'] ); - foreach ( $autofocus as $type => $id ) { - if ( isset( $settings[ $type . 's' ][ $id ] ) ) { - $settings['autofocus'][ $type ] = $id; + if ( is_array( $autofocus ) ) { + foreach ( $autofocus as $type => $id ) { + if ( isset( $settings[ $type . 's' ][ $id ] ) ) { + $settings['autofocus'][ $type ] = $id; + } } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ea9d79103..2f3ebc9711 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30163'; +$wp_version = '4.1-alpha-30164'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.