From 5ae33c082f69b2d867a4c63f8c37143634fb72aa Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 21 May 2015 20:46:25 +0000 Subject: [PATCH] In `capabilities.php`, clarify/add some `return` docs. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32530 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/capabilities.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/capabilities.php b/src/wp-includes/capabilities.php index 588432dcfc..33556b9f46 100644 --- a/src/wp-includes/capabilities.php +++ b/src/wp-includes/capabilities.php @@ -87,7 +87,7 @@ class WP_Roles { * * @param callable $name Method to call. * @param array $arguments Arguments to pass when calling. - * @return mixed|bool Return value of the callback, false otherwise. + * @return mixed|false Return value of the callback, false otherwise. */ public function __call( $name, $arguments ) { if ( '_init' === $name ) { @@ -713,6 +713,7 @@ class WP_User { * @since 3.3.0 * * @param string $key Property + * @return mixed */ public function get( $key ) { return $this->__get( $key ); @@ -726,6 +727,7 @@ class WP_User { * @since 3.3.0 * * @param string $key Property + * @return bool */ public function has_prop( $key ) { return $this->__isset( $key );