In `capabilities.php`, clarify/add some `return` docs.

See #32444.

Built from https://develop.svn.wordpress.org/trunk@32530


git-svn-id: http://core.svn.wordpress.org/trunk@32500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-05-21 20:47:26 +00:00
parent 3f32bf7bc0
commit e724ed2b04
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class WP_Roles {
* *
* @param callable $name Method to call. * @param callable $name Method to call.
* @param array $arguments Arguments to pass when calling. * @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 ) { public function __call( $name, $arguments ) {
if ( '_init' === $name ) { if ( '_init' === $name ) {
@ -713,6 +713,7 @@ class WP_User {
* @since 3.3.0 * @since 3.3.0
* *
* @param string $key Property * @param string $key Property
* @return mixed
*/ */
public function get( $key ) { public function get( $key ) {
return $this->__get( $key ); return $this->__get( $key );
@ -726,6 +727,7 @@ class WP_User {
* @since 3.3.0 * @since 3.3.0
* *
* @param string $key Property * @param string $key Property
* @return bool
*/ */
public function has_prop( $key ) { public function has_prop( $key ) {
return $this->__isset( $key ); return $this->__isset( $key );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-alpha-32529'; $wp_version = '4.3-alpha-32530';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.