Plugin Directory

Changeset 3357576


Ignore:
Timestamp:
09/08/2025 03:05:15 AM (7 months ago)
Author:
codemenschen
Message:

Version 4.5.7

Location:
gift-voucher
Files:
975 added
2 edited

Legend:

Unmodified
Added
Removed
  • gift-voucher/trunk/gift-voucher.php

    r3331123 r3357576  
    77 * Author: Codemenschen GmbH
    88 * Author URI: https://www.codemenschen.at/
    9  * Version: 4.5.6
     9 * Version: 4.5.7
    1010 * Text Domain: gift-voucher
    1111 * Domain Path: /languages
     
    2323if (!defined('ABSPATH')) exit;  // Exit if accessed directly
    2424
    25 define('WPGIFT_VERSION', '4.5.6');
     25define('WPGIFT_VERSION', '4.5.7');
    2626define('WPGIFT__MINIMUM_WP_VERSION', '4.0');
    2727define('WPGIFT__PLUGIN_DIR', untrailingslashit(plugin_dir_path(__FILE__)));
     
    6262  $langOK = load_plugin_textdomain('gift-voucher', false, dirname(plugin_basename(__FILE__)) . '/languages');
    6363}
    64 add_action('plugins_loaded', 'wpgiftv_plugin_init');
     64
     65// Load textdomain at the right time to avoid WordPress 6.7+ warnings
     66add_action('init', 'wpgiftv_plugin_init');
     67add_action('after_setup_theme', 'wpgiftv_plugin_init');
     68add_action('admin_init', 'wpgiftv_plugin_init');
    6569
    6670require_once(WPGIFT__PLUGIN_DIR . '/vendor/autoload.php');
     
    9296}
    9397
    94 add_action('plugins_loaded', function () {
     98add_action('init', function () {
    9599  WPGiftVoucherAdminPages::get_instance();
    96100});
     
    184188}
    185189
    186 add_action('plugins_loaded', 'wpgv_voucher_imagesize_setup');
     190add_action('init', 'wpgv_voucher_imagesize_setup');
    187191function wpgv_voucher_imagesize_setup()
    188192{
     
    241245  wp_register_script('wpgv-jquery-validate', WPGIFT__PLUGIN_URL . '/assets/js/jquery.validate.min.js', array('jquery'), '1.17.0', true);
    242246  wp_register_script('wpgv-jquery-steps', WPGIFT__PLUGIN_URL . '/assets/js/jquery.steps.min.js', array('jquery'), '1.1.0', true);
    243   wp_register_script('wpgv-stripe-js', WPGIFT__PLUGIN_URL . '/assets/js/stripe-v3.js', array('jquery'), NULL, true);
     247  wp_register_script('wpgv-stripe-js', WPGIFT__PLUGIN_URL . '/assets/js/stripe-v3.js', array('jquery'), '3.0.0', true);
    244248  wp_register_script('wpgv-voucher-script', WPGIFT__PLUGIN_URL  . '/assets/js/voucher-script.js', array('jquery'), '3.3.9.1', true);
    245249  wp_register_script('wpgv-item-script', WPGIFT__PLUGIN_URL  . '/assets/js/item-script.js', array('jquery'), '3.3.9.1', true);
     
    249253  wp_register_script('wpgv-voucher-template-script', WPGIFT__PLUGIN_URL  . '/assets/js/voucher-template-script.js', array('jquery'), WPGIFT_VERSION, true);
    250254  if ($setting_options->test_mode) {
    251     wp_register_script('wpgv-paypal-js', 'https://www.paypal.com/sdk/js?client-id=sb&currency=' . $setting_options->currency_code, array('jquery'), NULL, true);
     255    wp_register_script('wpgv-paypal-js', 'https://www.paypal.com/sdk/js?client-id=sb&currency=' . $setting_options->currency_code, array('jquery'), '5.0.0', true);
    252256  } else {
    253257    $wpgv_paypal_client_id = get_option('wpgv_paypal_client_id') ? get_option('wpgv_paypal_client_id') : '';
    254     wp_register_script('wpgv-paypal-js', 'https://www.paypal.com/sdk/js?client-id=' . $wpgv_paypal_client_id . '&currency=' . $setting_options->currency_code, array('jquery'), NULL, true);
     258    wp_register_script('wpgv-paypal-js', 'https://www.paypal.com/sdk/js?client-id=' . $wpgv_paypal_client_id . '&currency=' . $setting_options->currency_code, array('jquery'), '5.0.0', true);
    255259  }
    256260  if (wpgv_is_woocommerce_enable()) {
     
    810814  $setting_options = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$wpdb->prefix}giftvouchers_setting WHERE id = %d", 1));
    811815
    812   $price = html_entity_decode(strip_tags(stripslashes($price)), ENT_NOQUOTES, 'UTF-8');
     816  $price = html_entity_decode(wp_strip_all_tags(stripslashes($price)), ENT_NOQUOTES, 'UTF-8');
    813817  $price = iconv('UTF-8', 'windows-1252', $price);
    814818  // number format new
  • gift-voucher/trunk/readme.txt

    r3331123 r3357576  
    44Requires at least: 4.0
    55Tested up to: 6.8.2
    6 Stable tag: 4.5.6
     6Stable tag: 4.5.7
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    219219== Changelog ==
    220220
     221= Version 4.5.7 - Released: September 08 2025
     222* Fix: Replace strip_tags() with wp_strip_all_tags() in wpgv_price_format() function for WordPress coding standards compliance
     223
    221224= Version 4.5.6 - Released: July 21 2025
    222225* Feature: Merge Gift Card input into WooCommerce coupon field
Note: See TracChangeset for help on using the changeset viewer.