Fill out inline documentation for magic methods added to the `WP_Query` class in [28523].
See #27881, #22234 and #28885. Built from https://develop.svn.wordpress.org/trunk@29141 git-svn-id: http://core.svn.wordpress.org/trunk@28925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f287dbbbde
commit
66119947ee
|
@ -3932,45 +3932,52 @@ class WP_Query {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make private properties readable for backwards compatibility
|
* Make private properties readable for backwards compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @param string $name
|
* @access public
|
||||||
* @return mixed
|
*
|
||||||
|
* @param string $name Property to get
|
||||||
|
* @return mixed Property.
|
||||||
*/
|
*/
|
||||||
public function __get( $name ) {
|
public function __get( $name ) {
|
||||||
return $this->$name;
|
return $this->$name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make private properties setable for backwards compatibility
|
* Make private properties setable for backwards compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @param string $name
|
* @access public
|
||||||
* @return mixed
|
*
|
||||||
|
* @param string $name Property to check if set.
|
||||||
|
* @return bool Whether the property is set.
|
||||||
*/
|
*/
|
||||||
public function __isset( $name ) {
|
public function __isset( $name ) {
|
||||||
return isset( $this->$name );
|
return isset( $this->$name );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make private properties setable for backwards compatibility
|
* Make private properties setable for backwards compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @param string $name
|
* @access public
|
||||||
* @return mixed
|
*
|
||||||
|
* @param string $name Property to unset.
|
||||||
*/
|
*/
|
||||||
public function __unset( $name ) {
|
public function __unset( $name ) {
|
||||||
unset( $this->$name );
|
unset( $this->$name );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make private/protected methods readable for backwards compatibility
|
* Make private/protected methods readable for backwards compatibility.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @param string $name
|
* @access public
|
||||||
* @param array $arguments
|
*
|
||||||
* @return mixed
|
* @param callable $name Method to call.
|
||||||
|
* @param array $arguments Arguments to pass when calling.
|
||||||
|
* @return mixed|bool Return value of the callback, otherwise false.
|
||||||
*/
|
*/
|
||||||
public function __call( $name, $arguments ) {
|
public function __call( $name, $arguments ) {
|
||||||
return call_user_func_array( array( $this, $name ), $arguments );
|
return call_user_func_array( array( $this, $name ), $arguments );
|
||||||
|
|
Loading…
Reference in New Issue