Make WordPress Core


Ignore:
Timestamp:
03/23/2016 07:00:38 PM (9 years ago)
Author:
boonebgorges
Message:

Tests: Ensure that the default wp_die() handler can handle a WP_Error object.

Props dd32, utkarshpatel.
Fixes #36166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r36854 r37071  
    293293
    294294    function wp_die_handler( $message ) {
     295        if ( ! is_scalar( $message ) ) {
     296            $message = '0';
     297        }
     298
    295299        throw new WPDieException( $message );
    296300    }
Note: See TracChangeset for help on using the changeset viewer.