Changeset 38363
- Timestamp:
- 08/26/2016 09:57:47 AM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 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 } -
trunk/src/wp-includes/load.php
r38334 r38363 1046 1046 return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX ); 1047 1047 } 1048 1049 /** 1050 * Check whether variable is a WordPress Error. 1051 * 1052 * Returns true if $thing is an object of the WP_Error class. 1053 * 1054 * @since 2.1.0 1055 * 1056 * @param mixed $thing Check if unknown variable is a WP_Error object. 1057 * @return bool True, if WP_Error. False, if not WP_Error. 1058 */ 1059 function is_wp_error( $thing ) { 1060 return ( $thing instanceof WP_Error ); 1061 }
Note: See TracChangeset
for help on using the changeset viewer.