diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 62d587bf6a..9330d2789b 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -2263,6 +2263,9 @@ final class WP_Customize_Manager { } $existing_changeset_data = $this->get_changeset_post_data( $changeset_post_id ); + if ( is_wp_error( $existing_changeset_data ) ) { + return $existing_changeset_data; + } } // Fail if attempting to publish but publish hook is missing. diff --git a/wp-includes/version.php b/wp-includes/version.php index d2cecbf22f..5253bf6eac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41011'; +$wp_version = '4.9-alpha-41012'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.