Commit 01db8ebedc for wordpress.org

commit 01db8ebedcf27c85c611d00fb6c963343bc1cdc5
Author: John Blackbourn <johnbillion@git.wordpress.org>
Date:   Sun Nov 30 11:26:30 2025 +0000

    Options, Meta APIs: Revert additional request validity handling that was added to the `/wp/v2/settings` REST API route. This change needs more work to account for URL query parameters used in place of body data.

    This reverts [60357] and [60301].

    See #41604
    Built from https://develop.svn.wordpress.org/trunk@61324


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

diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
index f3c4295370..004f5851a2 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
@@ -145,19 +145,7 @@ class WP_REST_Settings_Controller extends WP_REST_Controller {
 	public function update_item( $request ) {
 		$options = $this->get_registered_options();

-		$params = array_diff_key( $request->get_params(), $request->get_query_params() );
-
-		if ( empty( $params ) || ! empty( array_diff_key( $params, $options ) ) ) {
-			$message = empty( $params )
-				? __( 'Request body cannot be empty.' )
-				: __( 'Invalid parameter(s) provided.' );
-
-			return new WP_Error(
-				'rest_invalid_param',
-				$message,
-				array( 'status' => 400 )
-			);
-		}
+		$params = $request->get_params();

 		foreach ( $options as $name => $args ) {
 			if ( ! array_key_exists( $name, $params ) ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index b20c7790a4..c41302b0b9 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.0-alpha-61323';
+$wp_version = '7.0-alpha-61324';

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