Skip to content

Commit

Permalink
fix: prevent sliently stall phpunit issue
Browse files Browse the repository at this point in the history
for issue #4071 we added to die which cause to stall phpunit tests to prevent that we start is give_die with additional update
  • Loading branch information
ravinderk committed Apr 5, 2019
1 parent 4cf6b44 commit 915ca93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/api/class-give-api.php
Expand Up @@ -1794,7 +1794,7 @@ public function output( $status_code = 200 ) {
*/
do_action( 'give_api_output_after', $this->data, $this, $format );

die();
give_die();
}

/**
Expand Down
1 change: 1 addition & 0 deletions includes/error-tracking.php
Expand Up @@ -127,6 +127,7 @@ function _give_die_handler() {
*/
function give_die( $message = '', $title = '', $status = 400 ) {
add_filter( 'wp_die_ajax_handler', '_give_die_handler', 10, 3 );
add_filter( 'wp_die_json_handler', '_give_die_handler', 10, 3 );
add_filter( 'wp_die_handler', '_give_die_handler', 10, 3 );
wp_die( $message, $title, array( 'response' => $status ) );
}

0 comments on commit 915ca93

Please sign in to comment.