Skip to content

Commit cd7dbdc

Browse files
Double wp_unslash() on options data.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5c7546b commit cd7dbdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function bulk_toggle_options() {
284284
wp_send_json_error( __( 'Not allowed.', 'plausible-analytics' ), 403 );
285285
}
286286

287-
$options = json_decode( wp_unslash( $post_data['options'] ), true );
287+
$options = json_decode( $post_data['options'], true );
288288

289289
if ( empty( $options ) ) {
290290
wp_send_json_error( __( 'No options found.', 'plausible-analytics' ), 400 );

0 commit comments

Comments
 (0)