Commit fabb94e505 for wordpress.org
commit fabb94e505e05ab193962834057d87b8b25ac70e
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Sun Nov 2 17:29:34 2025 +0000
Docs: Correct the type for some method parameters in `WP_REST_Server` class.
Follow-up to [34928].
Props dilipbheda, mukesh27, kirasong, shailu25, khushdoms, welcher, audrasjb, SergeyBiryukov.
See #63249.
Built from https://develop.svn.wordpress.org/trunk@61113
git-svn-id: http://core.svn.wordpress.org/trunk@60449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php
index 8ffda57f15..dd7c81a4fd 100644
--- a/wp-includes/rest-api/class-wp-rest-server.php
+++ b/wp-includes/rest-api/class-wp-rest-server.php
@@ -224,9 +224,9 @@ class WP_REST_Server {
*
* @since 4.4.0
*
- * @param string $code WP_Error-style code.
- * @param string $message Human-readable message.
- * @param int $status Optional. HTTP status code to send. Default null.
+ * @param string $code WP_Error-style code.
+ * @param string $message Human-readable message.
+ * @param int|null $status Optional. HTTP status code to send. Default null.
* @return string JSON representation of the error
*/
protected function json_error( $code, $message, $status = null ) {
@@ -278,8 +278,8 @@ class WP_REST_Server {
*
* @global WP_User $current_user The currently authenticated user.
*
- * @param string $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
- * Default null.
+ * @param string|null $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
+ * Default null.
* @return null|false Null if not served and a HEAD request, false otherwise.
*/
public function serve_request( $path = null ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 595a878e4a..2b8677bec8 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-beta2-61112';
+$wp_version = '6.9-beta2-61113';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.