- Timestamp:
- 08/22/2017 03:07:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/selective-refresh-ajax.php
r38858 r41293 38 38 parent::setUp(); 39 39 40 // Define DOING_AJAX so that wp_die() will be used instead of die(). 41 if ( ! defined( 'DOING_AJAX' ) ) { 42 define( 'DOING_AJAX', true ); 43 } 40 // Define wp_doing_ajax so that wp_die() will be used instead of die(). 41 add_filter( 'wp_doing_ajax', '__return_true' ); 44 42 add_filter( 'wp_die_ajax_handler', array( $this, 'get_wp_die_handler' ), 1, 1 ); 45 43
Note: See TracChangeset
for help on using the changeset viewer.