Plugin Directory

Changeset 3489623


Ignore:
Timestamp:
03/24/2026 05:20:28 AM (4 days ago)
Author:
themefic
Message:

3.5.39

Location:
ultimate-addons-for-contact-form-7/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ultimate-addons-for-contact-form-7/trunk/inc/functions.php

    r3479694 r3489623  
    13211321    check_ajax_referer('uacf7_admin_nonce', 'security');
    13221322
    1323     update_option('uacf7_booking_pro_notice_dismissed', true);
     1323    $interval_days = get_option('uacf7_booking_pro_notice_interval_days', 30);
     1324    $allowed_intervals = array(30, 60, 90);
     1325
     1326    if (!in_array((int) $interval_days, $allowed_intervals, true)) {
     1327        $interval_days = 30;
     1328    }
     1329
     1330    update_option('uacf7_booking_pro_notice_dismissed', true);
     1331    update_option('uacf7_booking_pro_notice_next_show_at', time() + ((int) $interval_days * DAY_IN_SECONDS));
    13241332
    13251333    wp_send_json_success();
     
    13291337
    13301338function uacf7_booking_pro_admin_notice() {
    1331     if (get_option('uacf7_booking_pro_notice_dismissed')) {
    1332         return;
    1333     }
    1334 
    1335     $last_updated = get_option('uacf7_plugin_last_updated', 0);
    1336 
    1337     if (time() - $last_updated < 6 * HOUR_IN_SECONDS) {
    1338         return; // If not 6 hours yet, don't show the notice
    1339     }
     1339    $interval_days = (int) get_option('uacf7_booking_pro_notice_interval_days', 30);
     1340    $allowed_intervals = array(30, 60, 90);
     1341    if (!in_array($interval_days, $allowed_intervals, true)) {
     1342        $interval_days = 30;
     1343    }
     1344
     1345    // Keep legacy option in sync with the new cadence options.
     1346    update_option('uacf7_booking_pro_notice_interval_days', $interval_days);
     1347    update_option('uacf7_booking_pro_notice_next_show_at_days', $interval_days);
     1348
     1349    $next_show_at = (int) get_option('uacf7_booking_pro_notice_next_show_at', 0);
     1350    if ($next_show_at > time()) {
     1351        return;
     1352    }
    13401353
    13411354    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     
    14431456    <div class="notice hydra-notice is-dismissible uacf7-booking-pro-notice" style="border-left-color: #b32d2e;">
    14441457        <div class="notice-text" style="width: 70%;">
    1445             <strong style="display: block;">Hey <?php echo wp_get_current_user()->display_name; ?>! Want to enhance your Booking/Appointment Addon?</strong>
     1458            <strong style="display: block;">Hey <?php echo esc_html( wp_get_current_user()->display_name ); ?>! Want to enhance your Booking/Appointment Addon?</strong>
    14461459            <p>HydraBooking: More than Booking Addon, with extra features for your convenience.</p>
    14471460        </div>
  • ultimate-addons-for-contact-form-7/trunk/readme.txt

    r3479694 r3489623  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 3.5.38
     7Stable tag: 3.5.39
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    482482== Changelog ==
    483483
     484= 3.5.39 - 24/03/2026 =
     485
     486- System stability has been improved.
     487
    484488= 3.5.38 - 11/03/2026 =
    485489
  • ultimate-addons-for-contact-form-7/trunk/ultimate-addons-for-contact-form-7.php

    r3479694 r3489623  
    44 * Plugin URI: https://cf7addons.com/
    55 * Description: 50+ Essential Addons for Contact Form 7 - Conditional Fields, Multi Step Forms, Redirection, Form Templates, Columns, WooCommerce, Mailchimp and more, all in one.
    6  * Version: 3.5.38
     6 * Version: 3.5.39
    77 * Author: Themefic
    88 * Author URI: https://themefic.com/
     
    3131        define( 'UACF7_PATH', plugin_dir_path( __FILE__ ) );
    3232
    33         define( 'UACF7_VERSION', '3.5.38' );
     33        define( 'UACF7_VERSION', '3.5.39' );
    3434
    3535        if ( ! class_exists( 'Appsero\Client' ) ) {
Note: See TracChangeset for help on using the changeset viewer.