]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-error.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-includes / class-wp-error.php
index 1010adb047e6ac4bf8770befbee5e957ad3033b4..22273f89b23fd649604d5166914187c49e37246b 100644 (file)
@@ -202,17 +202,3 @@ class WP_Error {
                unset( $this->error_data[ $code ] );
        }
 }
-
-/**
- * Check whether variable is a WordPress Error.
- *
- * Returns true if $thing is an object of the WP_Error class.
- *
- * @since 2.1.0
- *
- * @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 ) {
-       return ( $thing instanceof WP_Error );
-}