Skip to content

Commit

Permalink
Removing some unreachable die statements after `WP_AJAX_Response::s…
Browse files Browse the repository at this point in the history
…end()`.

See #1167.
  • Loading branch information
boonebgorges committed Sep 14, 2023
1 parent f3ef942 commit 5ae131e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions Core/AJAX/ConfigurationAJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ public function pf_bad_call( $action, $msg = 'You made a bad call and it did not

$xml_response = new WP_Ajax_Response( $response );
$xml_response->send();
ob_end_clean();
die();
}

/**
Expand All @@ -156,8 +154,6 @@ public function pf_ajax_retain_display_setting() {

$xml_response = new WP_Ajax_Response( $response );
$xml_response->send();
ob_end_clean();
die();
}

/**
Expand Down Expand Up @@ -192,8 +188,6 @@ public function pf_ajax_user_setting() {
);
$xml_response = new WP_Ajax_Response( $response );
$xml_response->send();
ob_end_clean();
die();
}

/**
Expand Down
3 changes: 0 additions & 3 deletions Core/AJAX/ItemsAJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public function trigger_item_disassembly() {
'action_taken' => 'Feed items being removed',
);
wp_send_json( $message );
die();
}

/**
Expand Down Expand Up @@ -169,8 +168,6 @@ public function pf_ajax_thing_deleter() {

$xml_response = new WP_Ajax_Response( $response );
$xml_response->send();
ob_end_clean();
die();
}

/**
Expand Down
2 changes: 0 additions & 2 deletions Core/AJAX/MetaAJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,5 @@ public function pf_ajax_update_meta_fields() {

$xml_response = new WP_Ajax_Response( $response );
$xml_response->send();

die();
}
}

0 comments on commit 5ae131e

Please sign in to comment.