Commit 1bc652ea20 for wordpress.org
commit 1bc652ea20b6e6b6beb671b2c9009c87223372a7
Author: SergeyBiryukov <sergeybiryukov@git.wordpress.org>
Date: Wed Sep 30 10:18:51 2026 +0000
Docs: Adds missing documentation for three parameters in core classes.
Applies to:
* The `$args` parameter in `WP_HTTP_IXR_Client::query()`.
* The `$request` parameter in `WP_REST_Font_Collections_Controller::get_items_permissions_check()`.
* The `$method` parameter in `WP_REST_Font_Families_Controller::get_endpoint_args_for_item_schema()`.
Developed in https://github.com/WordPress/wordpress-develop/pull/12823.
Follow-up to r48238, r57548.
Props bejignesh, Soean, mukesh27, SergeyBiryukov.
See #65860.
Built from https://develop.svn.wordpress.org/trunk@64014
git-svn-id: http://core.svn.wordpress.org/trunk@63174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/class-wp-http-ixr-client.php b/wp-includes/class-wp-http-ixr-client.php
index 253497a7c8..3efaa31cfe 100644
--- a/wp-includes/class-wp-http-ixr-client.php
+++ b/wp-includes/class-wp-http-ixr-client.php
@@ -47,10 +47,13 @@ class WP_HTTP_IXR_Client extends IXR_Client {
}
/**
+ * Makes an XML-RPC request and retrieves the response.
+ *
* @since 3.1.0
* @since 5.5.0 Formalized the existing `...$args` parameter by adding it
* to the function signature.
*
+ * @param mixed ...$args The method name, followed by the arguments to pass to it.
* @return bool True if the request succeeded, false otherwise.
*/
public function query( ...$args ) {
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php
index ff1051fbd0..8ed02e1414 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php
@@ -335,7 +335,8 @@ class WP_REST_Font_Collections_Controller extends WP_REST_Controller {
*
* @since 6.5.0
*
- * @return true|WP_Error True if the request has write access for the item, WP_Error object otherwise.
+ * @param WP_REST_Request $request Full details about the request.
+ * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
*/
public function get_items_permissions_check( $request ) {
if ( current_user_can( 'edit_theme_options' ) ) {
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php
index a83f64c816..a126055b4c 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php
@@ -427,6 +427,7 @@ class WP_REST_Font_Families_Controller extends WP_REST_Posts_Controller {
*
* @since 6.5.0
*
+ * @param string $method Optional. HTTP method of the request. Default WP_REST_Server::CREATABLE.
* @return array Font family create/edit arguments.
*/
public function get_endpoint_args_for_item_schema( $method = WP_REST_Server::CREATABLE ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 9cb6ee9266..1ed0e0afc9 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-64013';
+$wp_version = '7.2-alpha-64014';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.