Skip to content

Commit

Permalink
Don't include rest_route in the email to be sent
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Dec 20, 2022
1 parent 17e58cd commit 87156bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function form_submit( $request ) { // phpcs:ignore VariableAnalysis.CodeA
'<a href="' . esc_url( $params['_wp_http_referer'] ) . '">' . esc_url( $params['_wp_http_referer'] ) . '</a>'
);

$skip_fields = array( 'wp_rest', '_wp_http_referer' );
$skip_fields = array( 'wp_rest', '_wp_http_referer', 'rest_route' );
foreach ( $params as $key => $value ) {
if ( in_array( $key, $skip_fields, true ) ) {
continue;
Expand Down

0 comments on commit 87156bc

Please sign in to comment.