Skip to content

Commit

Permalink
fix: check ajax_nonce while cropping banner (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Dec 13, 2018
1 parent 322cdac commit 9c379c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ public function crop_store_banner() {
wp_send_json_error();
}

check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' );

$crop_details = $_POST['cropDetails'];

$dimensions = $this->get_header_dimensions( array(
Expand Down

0 comments on commit 9c379c6

Please sign in to comment.