diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index fa97e3f680..5e66a1aa75 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -271,7 +271,7 @@ final class WP_Customize_Manager { } $this->original_stylesheet = get_stylesheet(); - $this->theme = wp_get_theme( $args['theme'] ); + $this->theme = wp_get_theme( 0 === validate_file( $args['theme'] ) ? $args['theme'] : null ); $this->messenger_channel = $args['messenger_channel']; $this->settings_previewed = ! empty( $args['settings_previewed'] ); $this->_changeset_uuid = $args['changeset_uuid']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 2eadee167d..b0397d67a0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41395'; +$wp_version = '4.9-alpha-41397'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.