mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
Correct inline docs for is_wp_error(). props johnbillion. fixes #24637.
git-svn-id: http://core.svn.wordpress.org/trunk@24507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
642202c02a
commit
d842da10e7
@ -194,13 +194,11 @@ class WP_Error {
|
|||||||
/**
|
/**
|
||||||
* Check whether variable is a WordPress Error.
|
* Check whether variable is a WordPress Error.
|
||||||
*
|
*
|
||||||
* Looks at the object and if a WP_Error class. Does not check to see if the
|
* Returns true if $thing is an object of the WP_Error class.
|
||||||
* parent is also WP_Error, so can't inherit WP_Error and still use this
|
|
||||||
* function.
|
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*
|
*
|
||||||
* @param mixed $thing Check if unknown variable is WordPress Error object.
|
* @param mixed $thing Check if unknown variable is a WP_Error object.
|
||||||
* @return bool True, if WP_Error. False, if not WP_Error.
|
* @return bool True, if WP_Error. False, if not WP_Error.
|
||||||
*/
|
*/
|
||||||
function is_wp_error($thing) {
|
function is_wp_error($thing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user