Changeset 31188 for trunk/src/wp-includes/class-wp-error.php
- Timestamp:
- 01/16/2015 01:05:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-error.php
r31138 r31188 215 215 * @return bool True, if WP_Error. False, if not WP_Error. 216 216 */ 217 function is_wp_error($thing) { 218 if ( is_object($thing) && is_a($thing, 'WP_Error') ) 219 return true; 220 return false; 217 function is_wp_error( $thing ) { 218 return ( $thing instanceof WP_Error ); 221 219 }
Note: See TracChangeset
for help on using the changeset viewer.