Plugin Directory

Changeset 3479801


Ignore:
Timestamp:
03/11/2026 08:06:53 AM (3 weeks ago)
Author:
wpwham
Message:

Version 3.2.12 update

Location:
woocommerce-more-sorting/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-more-sorting/trunk/includes/class-alg-wc-more-sorting-restore-default.php

    r1971106 r3479801  
    33 * WooCommerce More Sorting - Restore Default
    44 *
    5  * @version 3.1.5
     5 * @version 3.2.12
    66 * @since   3.1.0
    77 * @author  Algoritmika Ltd.
     8 * @author  WP Wham
    89 */
    910
     
    1920     * Constructor.
    2021     *
    21      * @version 3.1.0
     22     * @version 3.2.12
    2223     * @since   3.1.0
    2324     */
    2425    function __construct() {
    25         add_action( 'init',    array( $this, 'restore_default_woocommerce_sorting' ),       PHP_INT_MAX );
    26         //add_action( 'after_setup_theme',    array( $this, 'restore_default_woocommerce_sorting' ),       PHP_INT_MAX );
    2726        add_action( 'wp_head', array( $this, 'restore_default_woocommerce_sorting_style' ), PHP_INT_MAX );
     27        add_action( 'wp_loaded', array( $this, 'restore_default_woocommerce_sorting' ), PHP_INT_MAX );
    2828    }
    2929
  • woocommerce-more-sorting/trunk/readme.txt

    r3304169 r3479801  
    33Tags: woocommerce, sorting, sort
    44Requires at least: 4.4
    5 Tested up to: 6.8
    6 Stable tag: 3.2.11
     5Tested up to: 6.9
     6Stable tag: 3.2.12
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    7070
    7171== Changelog ==
     72
     73= 3.2.12 - 2026-03-11 =
     74* FIX: PHP notice.
    7275
    7376= 3.2.11 - 2025-05-31 =
  • woocommerce-more-sorting/trunk/woocommerce-more-sorting.php

    r3304169 r3479801  
    44Plugin URI: https://wpwham.com/products/more-sorting-options-for-woocommerce/
    55Description: Add new custom, rearrange, remove or rename WooCommerce sorting options.
    6 Version: 3.2.11
     6Version: 3.2.12
    77Author: WP Wham
    88Author URI: https://wpwham.com
    99Text Domain: woocommerce-more-sorting
    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
     
    6363 *
    6464 * @class   Alg_Woocommerce_More_Sorting
    65  * @version 3.2.11
     65 * @version 3.2.12
    6666 * @since   1.0.0
    6767 */
    6868final class Alg_Woocommerce_More_Sorting {
    69 
     69   
    7070    public $settings = null;
    7171   
     
    7373     * Plugin version
    7474     */
    75     public $version = '3.2.11';
    76 
     75    public $version = '3.2.12';
     76   
    7777    /**
    7878     * @var Alg_Woocommerce_More_Sorting The single instance of the class
    7979     */
    8080    protected static $_instance = null;
    81 
     81   
    8282    /**
    8383     * Main Alg_Woocommerce_More_Sorting Instance
     
    9494        return self::$_instance;
    9595    }
    96 
     96   
    9797    /**
    9898     * Alg_Woocommerce_More_Sorting Constructor.
    9999     *
    100100     * @access  public
    101      * @version 3.2.11
     101     * @version 3.2.12
    102102     * @since   3.0.0
    103103     */
    104     function __construct() {
    105 
    106         // Set up localisation
    107         add_action( 'init', array( $this, 'load_localization' ) );
    108 
    109         // Include required files
    110         $this->includes();
    111 
    112         // Settings
    113         if ( is_admin() ) {
    114             add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
    115             add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
    116             add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
    117         }
    118     }
    119            
    120     /**
    121      * @since   3.2.11
    122      */
    123     public function load_localization() {
    124         load_plugin_textdomain( 'woocommerce-more-sorting', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
    125     }
    126 
     104    public function __construct() {
     105       
     106        // Global
     107        add_action( 'init', array( $this, 'includes' ) );
     108       
     109        // Admin
     110        add_action( 'woocommerce_system_status_report', array( $this, 'add_settings_to_status_report' ) );
     111        add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
     112        add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_woocommerce_settings_tab' ) );
     113       
     114    }
     115   
     116   
    127117    /**
    128118     * Show action links on the plugin screen.
     
    213203     * Include required core files used in admin and on the frontend.
    214204     *
    215      * @version 3.1.2
    216      */
    217     function includes() {
    218 
     205     * @version 3.2.12
     206     * @since   2.0.0
     207     */
     208    public function includes() {
     209       
     210        // Localization
     211        load_plugin_textdomain( 'woocommerce-more-sorting', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
     212       
    219213        // Functions
    220214        require_once( 'includes/alg-wc-more-sorting-functions.php' );
    221 
     215       
    222216        // Settings
    223217        require_once( 'includes/admin/class-alg-wc-more-sorting-settings-section.php' );
     
    242236            update_option( 'alg_wc_more_sorting_version', $this->version );
    243237        }
    244 
     238       
    245239        // Core
    246240        require_once( 'includes/class-alg-wc-more-sorting.php' );
    247     }
    248 
     241       
     242    }
     243   
     244   
    249245    /**
    250246     * handle_deprecated_options.
Note: See TracChangeset for help on using the changeset viewer.