WordPress.org

Make WordPress Core

Ticket #24637: 24637.patch

File 24637.patch, 793 bytes (added by johnbillion, 10 months ago)
  • wp-includes/class-wp-error.php

     
    194194/** 
    195195 * Check whether variable is a WordPress Error. 
    196196 * 
    197  * Looks at the object and if a WP_Error class. Does not check to see if the 
    198  * parent is also WP_Error, so can't inherit WP_Error and still use this 
    199  * function. 
     197 * Returns true if $thing is an object of the WP_Error class. 
    200198 * 
    201199 * @since 2.1.0 
    202200 * 
    203  * @param mixed $thing Check if unknown variable is WordPress Error object. 
     201 * @param mixed $thing Check if unknown variable is a WP_Error object. 
    204202 * @return bool True, if WP_Error. False, if not WP_Error. 
    205203 */ 
    206204function is_wp_error($thing) {