Plugin Directory

Changeset 3478911


Ignore:
Timestamp:
03/10/2026 09:07:30 AM (3 weeks ago)
Author:
wpwham
Message:

Version 1.6.5 update

Location:
sku-for-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sku-for-woocommerce/trunk/readme.txt

    r3304122 r3478911  
    33Tags: woocommerce, sku, stock keeping unit, generate sku, generate
    44Requires at least: 4.4
    5 Tested up to: 6.8
    6 Stable tag: 1.6.4
     5Tested up to: 6.9
     6Stable tag: 1.6.5
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Changelog ==
     50
     51= 1.6.5 - 2026-03-10 =
     52* FIX: PHP notice.
    5053
    5154= 1.6.4 - 2025-05-31 =
  • sku-for-woocommerce/trunk/sku-for-woocommerce.php

    r3304122 r3478911  
    44Plugin URI: https://wpwham.com/products/sku-generator-for-woocommerce/
    55Description: Add full SKU support to WooCommerce.
    6 Version: 1.6.4
     6Version: 1.6.5
    77Author: WP Wham
    88Author URI: https://wpwham.com
    99Text Domain: sku-for-woocommerce
    1010Domain Path: /langs
    11 Copyright: © 2018-2025 WP Wham. All rights reserved.
     11Copyright: © 2018-2026 WP Wham. All rights reserved.
    1212License: GNU General Public License v3.0
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3838
    3939if ( ! defined( 'WPWHAM_SKU_GENERATOR_VERSION' ) ) {
    40     define( 'WPWHAM_SKU_GENERATOR_VERSION', '1.6.4' );
     40    define( 'WPWHAM_SKU_GENERATOR_VERSION', '1.6.5' );
    4141}
    4242
     
    5252 * Main Alg_WooCommerce_SKU Class
    5353 *
    54  * @version 1.6.4
     54 * @version 1.6.5
    5555 * @since   1.0.0
    5656 */
     
    6666     * @since 1.1.2
    6767     */
    68     public $version = '1.6.4';
     68    public $version = '1.6.5';
    6969
    7070    /**
     
    9191     * Alg_WooCommerce_SKU Constructor.
    9292     *
    93      * @version 1.6.4
     93     * @version 1.6.5
    9494     * @access  public
    9595     */
    96     function __construct() {
    97 
    98         // Set up localisation
    99         add_action( 'init', array( $this, 'load_localization' ) );
    100 
    101         // Include required files
    102         $this->includes();
     96    public function __construct() {
     97       
     98        add_action( 'init', array( $this, 'includes' ) );
    10399
    104100        // Admin
    105         if ( is_admin() ) {
    106        
    107             add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
    108             add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
    109             $this->add_settings();
    110             add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
    111            
    112             // Version updated
    113             if ( get_option( 'alg_sku_generator_version', '' ) !== $this->version ) {
    114                 add_action( 'admin_init', array( $this, 'version_updated' ) );
    115             }
    116            
    117         }
    118 
    119     }
    120            
    121     /**
    122      * @since   1.6.4
    123      */
    124     public function load_localization() {
    125         load_plugin_textdomain( 'sku-for-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
     101        add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
     102        add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
     103        add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
     104
     105        // Updates
     106        if ( get_option( 'alg_sku_generator_version', '' ) !== $this->version ) {
     107            add_action( 'admin_init', array( $this, 'version_updated' ) );
     108        }
     109
    126110    }
    127111
     
    148132     * Include required core files used in admin and on the frontend.
    149133     *
    150      * @version 1.2.2
    151      */
    152     function includes() {
     134     * @version 1.6.5
     135     * @since   1.0.0
     136     */
     137    public function includes() {
     138        // Localization
     139        load_plugin_textdomain( 'sku-for-woocommerce', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
    153140        // Core
    154141        $this->core = require_once( 'includes/class-wc-sku.php' );
     142        // Add settings
     143        if ( is_admin() ) {
     144            $this->add_settings();
     145        }
    155146    }
    156147
Note: See TracChangeset for help on using the changeset viewer.