Plugin Directory

Changeset 3438002


Ignore:
Timestamp:
01/12/2026 05:13:42 PM (6 weeks ago)
Author:
wpazleen
Message:

update codebase with missing file

Location:
simple-form
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • simple-form/tags/3.8.0/app/Admin.php

    r3437912 r3438002  
    230230                echo '</p></div>';
    231231            });
     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' );
    232237        }
    233238    }
     
    246251        }
    247252
    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;
    251256        }
    252257
     
    330335    public function dismiss_pro_upgrade_notice() {
    331336        // 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            ) );
    334341        }
    335342
  • simple-form/tags/3.8.0/assets/public/cf7/formdeck-cf7-fe.js

    r3437912 r3438002  
    1 // SimpleForm CF7 redirection
     1// FormDeck CF7 redirection
    22document.addEventListener(
    33    "wpcf7mailsent",
  • simple-form/trunk/app/Admin.php

    r3437912 r3438002  
    230230                echo '</p></div>';
    231231            });
     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' );
    232237        }
    233238    }
     
    246251        }
    247252
    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;
    251256        }
    252257
     
    330335    public function dismiss_pro_upgrade_notice() {
    331336        // 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            ) );
    334341        }
    335342
  • simple-form/trunk/assets/public/cf7/formdeck-cf7-fe.js

    r3256540 r3438002  
    1 // SimpleForm CF7 redirection
     1// FormDeck CF7 redirection
    22document.addEventListener(
    33    "wpcf7mailsent",
Note: See TracChangeset for help on using the changeset viewer.