Changeset 3489623
- Timestamp:
- 03/24/2026 05:20:28 AM (4 days ago)
- Location:
- ultimate-addons-for-contact-form-7/trunk
- Files:
-
- 3 edited
-
inc/functions.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
ultimate-addons-for-contact-form-7.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ultimate-addons-for-contact-form-7/trunk/inc/functions.php
r3479694 r3489623 1321 1321 check_ajax_referer('uacf7_admin_nonce', 'security'); 1322 1322 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)); 1324 1332 1325 1333 wp_send_json_success(); … … 1329 1337 1330 1338 function 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 } 1340 1353 1341 1354 include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); … … 1443 1456 <div class="notice hydra-notice is-dismissible uacf7-booking-pro-notice" style="border-left-color: #b32d2e;"> 1444 1457 <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> 1446 1459 <p>HydraBooking: More than Booking Addon, with extra features for your convenience.</p> 1447 1460 </div> -
ultimate-addons-for-contact-form-7/trunk/readme.txt
r3479694 r3489623 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 3.5.3 87 Stable tag: 3.5.39 8 8 License: GPL-2.0+ 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 482 482 == Changelog == 483 483 484 = 3.5.39 - 24/03/2026 = 485 486 - System stability has been improved. 487 484 488 = 3.5.38 - 11/03/2026 = 485 489 -
ultimate-addons-for-contact-form-7/trunk/ultimate-addons-for-contact-form-7.php
r3479694 r3489623 4 4 * Plugin URI: https://cf7addons.com/ 5 5 * 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.3 86 * Version: 3.5.39 7 7 * Author: Themefic 8 8 * Author URI: https://themefic.com/ … … 31 31 define( 'UACF7_PATH', plugin_dir_path( __FILE__ ) ); 32 32 33 define( 'UACF7_VERSION', '3.5.3 8' );33 define( 'UACF7_VERSION', '3.5.39' ); 34 34 35 35 if ( ! class_exists( 'Appsero\Client' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.