Commit 1b0032b3a6 for wordpress.org

commit 1b0032b3a6620ac3f8b2f91955953076b5b5d3cf
Author: SergeyBiryukov <sergeybiryukov@git.wordpress.org>
Date:   Sat Oct 3 23:15:52 2026 +0000

    Code Quality: Remove an always-true check when scheduling a Customizer changeset.

    In `WP_Customize_Manager::save_changeset_post()`, a changeset with a `date_gmt` that is not in the future is rejected with a `not_future_date` error.

    The check that follows can therefore only be reached with `$is_future_dated` set to `true`, so the `'future' === $args['status'] || $is_future_dated` part of its condition always evaluates to `true`. The condition is reduced to the `is_theme_active()` check that actually decides it. There is no change in behavior.

    This resolves the only error in the `booleanOr.rightAlwaysTrue` PHPStan baseline, which is deleted.

    Follow-up to r39409.

    Props Soean, mukesh27.
    See #65817.
    Built from https://develop.svn.wordpress.org/trunk@64082


    git-svn-id: http://core.svn.wordpress.org/trunk@63241 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php
index b02a48fec8..412f575e3a 100644
--- a/wp-includes/class-wp-customize-manager.php
+++ b/wp-includes/class-wp-customize-manager.php
@@ -2687,7 +2687,7 @@ final class WP_Customize_Manager {
 				return new WP_Error( 'not_future_date', __( 'You must supply a future date to schedule.' ) ); // Only future dates are allowed.
 			}

-			if ( ! $this->is_theme_active() && ( 'future' === $args['status'] || $is_future_dated ) ) {
+			if ( ! $this->is_theme_active() ) {
 				return new WP_Error( 'cannot_schedule_theme_switches' ); // This should be allowed in the future, when theme is a regular setting.
 			}
 			$will_remain_auto_draft = ( ! $args['status'] && ( ! $changeset_post_id || 'auto-draft' === get_post_status( $changeset_post_id ) ) );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 135bfe8a18..a9212cf2d7 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-64081';
+$wp_version = '7.2-alpha-64082';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.