Changeset 3276469
- Timestamp:
- 04/18/2025 09:29:36 AM (12 months ago)
- File:
-
- 1 edited
-
ar-quick-view/trunk/public/inc/class.frontend.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ar-quick-view/trunk/public/inc/class.frontend.php
r3252076 r3276469 17 17 18 18 public function arqvww_get_variation_image_by_id(){ 19 20 // Nonce check 21 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field(wp_unslash($_POST['nonce'])), 'arqvww_nonce' ) ) { 22 wp_die( esc_html__( 'Security check failed. Please try again.', 'ar-quick-view' ) ); 23 } 19 24 20 25 if(isset($_POST['variation_image_id']) && !empty($_POST['variation_image_id'])){ … … 177 182 178 183 public function arqvww_get_quick_view_contents() { 179 // phpcs:disable WordPress.Security.NonceVerification.Recommended 184 185 186 // Nonce check 187 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field(wp_unslash($_POST['nonce'])), 'arqvww_nonce' ) ) { 188 wp_die( esc_html__( 'Security check failed. Please try again.', 'ar-quick-view' ) ); 189 } 190 180 191 if ( ! isset( $_REQUEST['product_id'] ) ) { 181 192 die(); … … 199 210 200 211 die(); 201 // phpcs:enable WordPress.Security.NonceVerification.Recommended212 202 213 } 203 214
Note: See TracChangeset
for help on using the changeset viewer.