Commit c377d24f74 for wordpress.org

commit c377d24f7408e7488327450485fa36fc35b8d20d
Author: westonruter <westonruter@git.wordpress.org>
Date:   Thu Sep 24 19:37:46 2026 +0000

    Build/Test Tools: Make unit test factories throw on failure.

    Unit test factory methods returned a `WP_Error` when the underlying create, update or retrieval failed. Most callers expect an object ID or an object, so the error went unchecked and the failure resurfaced later as an unrelated assertion, hiding its cause. The factories now throw a new `WP_UnitTest_Factory_Exception` instead, which stops the test at the point where its fixture could not be built.

    The `create()`, `create_and_get()` and `create_many()` methods throw, as do the core `create_object()`, `update_object()` and `get_object_by_id()` implementations, which now document the type they return. Factories defined outside core that still return a `WP_Error`, `null` or `false` from those methods keep working, since `create()` and `create_and_get()` turn such a result into an exception as well. The `create_upload_object()` method is unchanged and still returns a `WP_Error` on failure.

    Asserting these results surfaced several fixtures that had been silently wrong. The term factory's `update_object()` read an undefined taxonomy, so a term fixture with an after-create callback failed to update. The comment factory treated zero affected rows from `wp_update_comment()` as a failure. The term factory's `create_and_get()` looked the term up in the wrong taxonomy when one was given in the generation definitions. Updating a site or a network through the factory was never implemented and silently did nothing, and now throws.

    The narrowed return types are documented rather than declared natively, so that a subclass which overrides `get_object_by_id()` without a return type still loads. The factory's own tests cover each of these behaviors, including a stub factory written against the contract before this change.

    Developed in https://github.com/WordPress/wordpress-develop/pull/13612.
    Follow-up to r40968, r55019, r63924.

    Props faisalahammad, westonruter.
    Fixes #66111.

    Built from https://develop.svn.wordpress.org/trunk@63925


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

diff --git a/wp-includes/version.php b/wp-includes/version.php
index ebc0507d05..8b2663e13d 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-63924';
+$wp_version = '7.2-alpha-63925';

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