Ticket #36166: 36166_2.patch
| File 36166_2.patch, 539 bytes (added by , 10 years ago) |
|---|
-
tests/phpunit/includes/testcase.php
292 292 } 293 293 294 294 function wp_die_handler( $message ) { 295 if ( function_exists( 'is_wp_error' ) && is_wp_error( $message ) ) { 296 $errors = $message->get_error_messages(); 297 if ( 0 < count( $errors ) ) { 298 $message = join( ', ', $errors ); 299 } 300 } 295 301 throw new WPDieException( $message ); 296 302 } 297 303