Changeset 38363 for trunk/src/wp-includes/class-wp-error.php
- Timestamp:
- 08/26/2016 09:57:47 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-error.php
r37487 r38363 203 203 } 204 204 } 205 206 /**207 * Check whether variable is a WordPress Error.208 *209 * Returns true if $thing is an object of the WP_Error class.210 *211 * @since 2.1.0212 *213 * @param mixed $thing Check if unknown variable is a WP_Error object.214 * @return bool True, if WP_Error. False, if not WP_Error.215 */216 function is_wp_error( $thing ) {217 return ( $thing instanceof WP_Error );218 }
Note: See TracChangeset
for help on using the changeset viewer.