From 67c973f95eb611539be978a6578379fbcafa4ca5 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 10 Nov 2017 22:56:47 +0000 Subject: [PATCH] Docs: Correct parameter type documentation for various `__call()` methods. See #42505 Built from https://develop.svn.wordpress.org/trunk@42151 git-svn-id: http://core.svn.wordpress.org/trunk@41982 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-list-table.php | 2 +- wp-includes/class-oembed.php | 2 +- wp-includes/class-wp-comment-query.php | 2 +- wp-includes/class-wp-query.php | 2 +- wp-includes/class-wp-roles.php | 2 +- wp-includes/class-wp-user-query.php | 2 +- wp-includes/class-wp-user.php | 2 +- wp-includes/class-wp-xmlrpc-server.php | 2 +- wp-includes/version.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index d47b530202..84d9d781bd 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -215,7 +215,7 @@ class WP_List_Table { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|bool Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 359171e37d..dc61ec8960 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -229,7 +229,7 @@ class WP_oEmbed { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|bool Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index d781b88a28..087f341d9e 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -118,7 +118,7 @@ class WP_Comment_Query { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|false Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index afc8f9691a..fd1f485b57 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -3362,7 +3362,7 @@ class WP_Query { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|false Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-wp-roles.php b/wp-includes/class-wp-roles.php index 96733451c1..656e169c9f 100644 --- a/wp-includes/class-wp-roles.php +++ b/wp-includes/class-wp-roles.php @@ -95,7 +95,7 @@ class WP_Roles { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|false Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-wp-user-query.php b/wp-includes/class-wp-user-query.php index b2462dcf1d..979819b722 100644 --- a/wp-includes/class-wp-user-query.php +++ b/wp-includes/class-wp-user-query.php @@ -847,7 +847,7 @@ class WP_User_Query { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-wp-user.php b/wp-includes/class-wp-user.php index 4a90439ba3..f2a7b412ee 100644 --- a/wp-includes/class-wp-user.php +++ b/wp-includes/class-wp-user.php @@ -421,7 +421,7 @@ class WP_User { * * @since 4.3.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|false Return value of the callback, false otherwise. */ diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index c35498cd97..3e8dce5d8d 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -171,7 +171,7 @@ class wp_xmlrpc_server extends IXR_Server { * * @since 4.0.0 * - * @param callable $name Method to call. + * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return array|IXR_Error|false Return value of the callback, false otherwise. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index b61d46a58b..7a35d13236 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42150'; +$wp_version = '5.0-alpha-42151'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.