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
This commit is contained in:
parent
e501a4227c
commit
5ae33c082f
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user