Make WordPress Core

Changeset 25432


Ignore:
Timestamp:
09/13/2013 09:32:54 PM (11 years ago)
Author:
wonderboymusic
Message:

Remove the unnecessary call to ob_end_clean() directly after ob_get_clean() in WP_Ajax_UnitTestCase::dieHandler(). This fixes a large number of AJAX errors in debug mode.

See #25282.

File:
1 edited

Legend:

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

    r25002 r25432  
    130130    public function dieHandler( $message ) {
    131131        $this->_last_response .= ob_get_clean();
    132         ob_end_clean();
     132
    133133        if ( '' === $this->_last_response ) {
    134134            if ( is_scalar( $message) ) {
Note: See TracChangeset for help on using the changeset viewer.