Changeset 41293 for trunk/tests/phpunit/tests/ajax/Response.php
- Timestamp:
- 08/22/2017 03:07:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/Response.php
r35211 r41293 24 24 25 25 add_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 ); 26 if ( !defined( 'DOING_AJAX' ) ) 27 define( 'DOING_AJAX', true ); 26 add_filter( 'wp_doing_ajax', '__return_true' ); 28 27 29 28 // Suppress warnings from "Cannot modify header information - headers already sent by"
Note: See TracChangeset
for help on using the changeset viewer.