From 6fc38f8160b6db277dede2ba936dfc122d32dd50 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 24 Jun 2013 18:23:45 +0000 Subject: [PATCH] Correct inline docs for is_wp_error(). props johnbillion. fixes #24637. git-svn-id: https://develop.svn.wordpress.org/trunk@24507 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-error.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-error.php b/wp-includes/class-wp-error.php index a3331da950..bbfcebc444 100644 --- a/wp-includes/class-wp-error.php +++ b/wp-includes/class-wp-error.php @@ -194,13 +194,11 @@ class WP_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 - * parent is also WP_Error, so can't inherit WP_Error and still use this - * function. + * Returns true if $thing is an object of the WP_Error class. * * @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. */ function is_wp_error($thing) {