Changeset 3479801
- Timestamp:
- 03/11/2026 08:06:53 AM (3 weeks ago)
- Location:
- woocommerce-more-sorting/trunk
- Files:
-
- 3 edited
-
includes/class-alg-wc-more-sorting-restore-default.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
woocommerce-more-sorting.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-more-sorting/trunk/includes/class-alg-wc-more-sorting-restore-default.php
r1971106 r3479801 3 3 * WooCommerce More Sorting - Restore Default 4 4 * 5 * @version 3. 1.55 * @version 3.2.12 6 6 * @since 3.1.0 7 7 * @author Algoritmika Ltd. 8 * @author WP Wham 8 9 */ 9 10 … … 19 20 * Constructor. 20 21 * 21 * @version 3. 1.022 * @version 3.2.12 22 23 * @since 3.1.0 23 24 */ 24 25 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 );27 26 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 ); 28 28 } 29 29 -
woocommerce-more-sorting/trunk/readme.txt
r3304169 r3479801 3 3 Tags: woocommerce, sorting, sort 4 4 Requires at least: 4.4 5 Tested up to: 6. 86 Stable tag: 3.2.1 15 Tested up to: 6.9 6 Stable tag: 3.2.12 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 70 70 71 71 == Changelog == 72 73 = 3.2.12 - 2026-03-11 = 74 * FIX: PHP notice. 72 75 73 76 = 3.2.11 - 2025-05-31 = -
woocommerce-more-sorting/trunk/woocommerce-more-sorting.php
r3304169 r3479801 4 4 Plugin URI: https://wpwham.com/products/more-sorting-options-for-woocommerce/ 5 5 Description: Add new custom, rearrange, remove or rename WooCommerce sorting options. 6 Version: 3.2.1 16 Version: 3.2.12 7 7 Author: WP Wham 8 8 Author URI: https://wpwham.com 9 9 Text Domain: woocommerce-more-sorting 10 10 Domain Path: /langs 11 Copyright: © 2018-202 5WP Wham. All rights reserved.11 Copyright: © 2018-2026 WP Wham. All rights reserved. 12 12 License: GNU General Public License v3.0 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 63 63 * 64 64 * @class Alg_Woocommerce_More_Sorting 65 * @version 3.2.1 165 * @version 3.2.12 66 66 * @since 1.0.0 67 67 */ 68 68 final class Alg_Woocommerce_More_Sorting { 69 69 70 70 public $settings = null; 71 71 … … 73 73 * Plugin version 74 74 */ 75 public $version = '3.2.1 1';76 75 public $version = '3.2.12'; 76 77 77 /** 78 78 * @var Alg_Woocommerce_More_Sorting The single instance of the class 79 79 */ 80 80 protected static $_instance = null; 81 81 82 82 /** 83 83 * Main Alg_Woocommerce_More_Sorting Instance … … 94 94 return self::$_instance; 95 95 } 96 96 97 97 /** 98 98 * Alg_Woocommerce_More_Sorting Constructor. 99 99 * 100 100 * @access public 101 * @version 3.2.1 1101 * @version 3.2.12 102 102 * @since 3.0.0 103 103 */ 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 127 117 /** 128 118 * Show action links on the plugin screen. … … 213 203 * Include required core files used in admin and on the frontend. 214 204 * 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 219 213 // Functions 220 214 require_once( 'includes/alg-wc-more-sorting-functions.php' ); 221 215 222 216 // Settings 223 217 require_once( 'includes/admin/class-alg-wc-more-sorting-settings-section.php' ); … … 242 236 update_option( 'alg_wc_more_sorting_version', $this->version ); 243 237 } 244 238 245 239 // Core 246 240 require_once( 'includes/class-alg-wc-more-sorting.php' ); 247 } 248 241 242 } 243 244 249 245 /** 250 246 * handle_deprecated_options.
Note: See TracChangeset
for help on using the changeset viewer.