Plugin Directory

Changeset 3464080


Ignore:
Timestamp:
02/18/2026 09:04:38 AM (6 weeks ago)
Author:
wpwham
Message:

Version 2.2.3 update

Location:
checkout-files-upload-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • checkout-files-upload-woocommerce/trunk/checkout-files-upload-woocommerce.php

    r3304095 r3464080  
    44Plugin URI: https://wpwham.com/products/checkout-files-upload-for-woocommerce/
    55Description: Let your customers upload files on (or after) WooCommerce checkout.
    6 Version: 2.2.2
     6Version: 2.2.3
    77Author: WP Wham
    88Author URI: https://wpwham.com/
    99Text Domain: checkout-files-upload-woocommerce
    1010Domain Path: /langs
    11 Copyright: © 2018-2025 WP Wham
     11Copyright: © 2018-2026 WP Wham
    1212License: GNU General Public License v3.0
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3838
    3939if ( ! defined( 'WPWHAM_CHECKOUT_FILES_UPLOAD_VERSION' ) ) {
    40     define( 'WPWHAM_CHECKOUT_FILES_UPLOAD_VERSION', '2.2.2' );
     40    define( 'WPWHAM_CHECKOUT_FILES_UPLOAD_VERSION', '2.2.3' );
    4141}
    4242if ( ! defined( 'WPWHAM_CHECKOUT_FILES_UPLOAD_DBVERSION' ) ) {
     
    6767 *
    6868 * @class   Alg_WC_Checkout_Files_Upload
    69  * @version 2.2.2
     69 * @version 2.2.3
    7070 * @since   1.0.0
    7171 */
     
    8181     * @since 1.0.0
    8282     */
    83     public $version = '2.2.2';
     83    public $version = '2.2.3';
    8484
    8585    /**
     
    109109     * Alg_WC_Checkout_Files_Upload Constructor.
    110110     *
    111      * @version 2.2.1
     111     * @version 2.2.3
    112112     * @since   1.0.0
    113113     * @access  public
    114114     */
    115115    function __construct() {
    116 
    117         // Set up localisation
    118         add_action( 'init', array( $this, 'load_localization' ) );
    119 
     116       
    120117        // Include required files
    121         $this->includes();
    122 
     118        require_once( 'includes/alg-wc-checkout-files-upload-functions.php' );
     119        $this->core = require_once( 'includes/class-alg-wc-checkout-files-upload.php' );
     120       
     121        // Global
     122        add_action( 'init', array( $this, 'includes' ) );
     123       
    123124        // Admin
    124         if ( is_admin() ) {
    125             add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
    126             add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
    127             add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
    128             add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
    129             // Settings
    130             require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-section.php' );
    131             require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-file.php' );
    132             $this->settings = array();
    133             $this->settings['general']  = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-general.php' );
    134             $this->settings['emails']   = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-emails.php' );
    135             $this->settings['template'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-template.php' );
    136             $total_number = apply_filters( 'alg_wc_checkout_files_upload_option', 1, 'total_number' );
    137             for ( $i = 1; $i <= $total_number; $i++ ) {
    138                 $this->settings[ 'file_' . $i ]  = new Alg_WC_Checkout_Files_Upload_Settings_File( $i );
    139             }
    140             add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
    141             // Version updated
    142             if ( get_option( 'alg_checkout_files_upload_version', '' ) !== $this->version ) {
    143                 add_action( 'admin_init', array( $this, 'version_updated' ) );
    144             }
    145         }
    146 
    147     }
    148 
    149     /**
    150      * @since   2.2.1
    151      */
    152     public function load_localization() {
    153         load_plugin_textdomain( 'checkout-files-upload-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
    154     }
     125        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
     126        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );
     127        add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
     128        add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
     129        add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
     130       
     131        // Updates
     132        if ( get_option( 'alg_checkout_files_upload_version', '' ) !== $this->version ) {
     133            add_action( 'admin_init', array( $this, 'version_updated' ) );
     134        }
     135       
     136    }
     137   
    155138   
    156139    /**
     
    286269        #endregion add_settings_to_status_report
    287270    }
    288 
     271   
     272   
    289273    /**
    290274     * Include required core files used in admin and on the frontend.
    291275     *
    292      * @version 1.4.0
    293      * @since   1.0.0
    294      */
    295     function includes() {
    296         // Functions
    297         require_once( 'includes/alg-wc-checkout-files-upload-functions.php' );
    298         // Core
    299         $this->core = require_once( 'includes/class-alg-wc-checkout-files-upload.php' );
    300     }
    301 
     276     * @version 2.2.3
     277     * @since   1.0.0
     278     */
     279    public function includes() {
     280       
     281        // Localization
     282        load_plugin_textdomain( 'checkout-files-upload-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
     283       
     284        // Settings
     285        require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-section.php' );
     286        require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-file.php' );
     287        $this->settings = array();
     288        $this->settings['general']  = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-general.php' );
     289        $this->settings['emails']   = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-emails.php' );
     290        $this->settings['template'] = require_once( 'includes/settings/class-alg-wc-checkout-files-upload-settings-template.php' );
     291        $total_number = apply_filters( 'alg_wc_checkout_files_upload_option', 1, 'total_number' );
     292        for ( $i = 1; $i <= $total_number; $i++ ) {
     293            $this->settings[ 'file_' . $i ]  = new Alg_WC_Checkout_Files_Upload_Settings_File( $i );
     294        }
     295       
     296    }
     297   
     298   
    302299    /**
    303300     * version_updated.
  • checkout-files-upload-woocommerce/trunk/includes/settings/class-alg-wc-checkout-files-upload-settings-file.php

    r2938534 r3464080  
    4545        $product_tags_options = array();
    4646        $product_tags = get_terms( 'product_tag', 'orderby=name&hide_empty=0' );
    47         if ( ! empty( $product_tags ) && ! is_wp_error( $product_tags ) ){
     47        if ( ! empty( $product_tags ) && ! is_wp_error( $product_tags ) ) {
    4848            foreach ( $product_tags as $product_tag ) {
    4949                $product_tags_options[ $product_tag->term_id ] = $product_tag->name;
     
    5454        $product_cats_options = array();
    5555        $product_cats = get_terms( 'product_cat', 'orderby=name&hide_empty=0' );
    56         if ( ! empty( $product_cats ) && ! is_wp_error( $product_cats ) ){
     56        if ( ! empty( $product_cats ) && ! is_wp_error( $product_cats ) ) {
    5757            foreach ( $product_cats as $product_cat ) {
    5858                $product_cats_options[ $product_cat->term_id ] = $product_cat->name;
  • checkout-files-upload-woocommerce/trunk/readme.txt

    r3304095 r3464080  
    33Tags: woocommerce, checkout files upload, checkout, woo commerce
    44Requires at least: 4.4
    5 Tested up to: 6.8
    6 Stable tag: 2.2.2
     5Tested up to: 6.9
     6Stable tag: 2.2.3
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    7777== Changelog ==
    7878
    79 = 2.2.2 - 2025-04-24 =
     79= 2.2.3 - 2026-02-18 =
     80* FIX: PHP notice.
     81
     82= 2.2.2 - 2025-05-31 =
    8083* FIX: add filter 'wpwham_checkout_files_upload_validate_file_type'.
    8184
Note: See TracChangeset for help on using the changeset viewer.