From 34edad16454c76cc95fc08cd68389673019104f3 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Mon, 14 Jul 2014 00:11:39 +0000 Subject: [PATCH] Fill out inline documentation for the `__call()` magic method added to the `WP_Roles` class in [28503]. See #22234 and #28885. git-svn-id: https://develop.svn.wordpress.org/trunk@29153 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/capabilities.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/capabilities.php b/src/wp-includes/capabilities.php index 42ec2f1fcf..ae885f6fa0 100644 --- a/src/wp-includes/capabilities.php +++ b/src/wp-includes/capabilities.php @@ -82,12 +82,14 @@ class WP_Roles { } /** - * Make private/protected methods readable for backwards compatibility + * Make private/protected methods readable for backwards compatibility. * * @since 4.0.0 - * @param string $name - * @param array $arguments - * @return mixed + * @access public + * + * @param callable $name Method to call. + * @param array $arguments Arguments to pass when calling. + * @return mixed|bool Return value of the callback, false otherwise. */ public function __call( $name, $arguments ) { return call_user_func_array( array( $this, $name ), $arguments );