Changeset 3438002
- Timestamp:
- 01/12/2026 05:13:42 PM (6 weeks ago)
- Location:
- simple-form
- Files:
-
- 8 added
- 4 edited
-
tags/3.8.0/app/Admin.php (modified) (3 diffs)
-
tags/3.8.0/app/Contactformseven.php (added)
-
tags/3.8.0/app/FloatingWidget.php (added)
-
tags/3.8.0/assets/public/cf7/formdeck-cf7-fe.js (modified) (1 diff)
-
tags/3.8.0/assets/public/library/[email protected] (added)
-
tags/3.8.0/freemius/templates/powered-by.php (added)
-
trunk/app/Admin.php (modified) (3 diffs)
-
trunk/app/Contactformseven.php (added)
-
trunk/app/FloatingWidget.php (added)
-
trunk/assets/public/cf7/formdeck-cf7-fe.js (modified) (1 diff)
-
trunk/assets/public/library/[email protected] (added)
-
trunk/freemius/templates/powered-by.php (added)
Legend:
- Unmodified
- Added
- Removed
-
simple-form/tags/3.8.0/app/Admin.php
r3437912 r3438002 230 230 echo '</p></div>'; 231 231 }); 232 } else { 233 // Pro version is compatible, clear any existing upgrade flags 234 delete_option( 'sf_pro_upgrade_required' ); 235 delete_option( 'sf_pro_old_version' ); 236 delete_option( 'sf_pro_upgrade_notice_dismissed' ); 232 237 } 233 238 } … … 246 251 } 247 252 248 // Check if Pro is active and has version constant 249 if ( defined( ' WP_NOTIFIER_TO_SLACK_PRO_VERSION' ) ) {250 return WP_NOTIFIER_TO_SLACK_PRO_VERSION;253 // Check if Pro is active and has version constant (new version) 254 if ( defined( 'SIMPLEFORMPRO_VERSION' ) ) { 255 return SIMPLEFORMPRO_VERSION; 251 256 } 252 257 … … 330 335 public function dismiss_pro_upgrade_notice() { 331 336 // Verify nonce 332 if ( ! wp_verify_nonce( $_POST['nonce'], 'sf_dismiss_notice' ) ) { 333 wp_die( 'Security check failed' ); 337 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'sf_dismiss_notice' ) ) { 338 wp_send_json_error( array( 339 'message' => __( 'Security check failed', 'simpleform' ), 340 ) ); 334 341 } 335 342 -
simple-form/tags/3.8.0/assets/public/cf7/formdeck-cf7-fe.js
r3437912 r3438002 1 // SimpleFormCF7 redirection1 // FormDeck CF7 redirection 2 2 document.addEventListener( 3 3 "wpcf7mailsent", -
simple-form/trunk/app/Admin.php
r3437912 r3438002 230 230 echo '</p></div>'; 231 231 }); 232 } else { 233 // Pro version is compatible, clear any existing upgrade flags 234 delete_option( 'sf_pro_upgrade_required' ); 235 delete_option( 'sf_pro_old_version' ); 236 delete_option( 'sf_pro_upgrade_notice_dismissed' ); 232 237 } 233 238 } … … 246 251 } 247 252 248 // Check if Pro is active and has version constant 249 if ( defined( ' WP_NOTIFIER_TO_SLACK_PRO_VERSION' ) ) {250 return WP_NOTIFIER_TO_SLACK_PRO_VERSION;253 // Check if Pro is active and has version constant (new version) 254 if ( defined( 'SIMPLEFORMPRO_VERSION' ) ) { 255 return SIMPLEFORMPRO_VERSION; 251 256 } 252 257 … … 330 335 public function dismiss_pro_upgrade_notice() { 331 336 // Verify nonce 332 if ( ! wp_verify_nonce( $_POST['nonce'], 'sf_dismiss_notice' ) ) { 333 wp_die( 'Security check failed' ); 337 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'sf_dismiss_notice' ) ) { 338 wp_send_json_error( array( 339 'message' => __( 'Security check failed', 'simpleform' ), 340 ) ); 334 341 } 335 342 -
simple-form/trunk/assets/public/cf7/formdeck-cf7-fe.js
r3256540 r3438002 1 // SimpleFormCF7 redirection1 // FormDeck CF7 redirection 2 2 document.addEventListener( 3 3 "wpcf7mailsent",
Note: See TracChangeset
for help on using the changeset viewer.