WordPress.org

Make WordPress Core

Ticket #16781: 16781.patch

File 16781.patch, 529 bytes (added by hakre, 3 years ago)

w/o subclassing

  • wp-includes/class-wp-error.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress
     
    204204 * @return bool True, if WP_Error. False, if not WP_Error. 
    205205 */ 
    206206function is_wp_error($thing) { 
    207         if ( is_object($thing) && is_a($thing, 'WP_Error') ) 
    208                 return true; 
    209         return false; 
     207        return is_a($thing, 'WP_Error'); 
    210208} 
    211209 
    212210?> 
     211 No newline at end of file