Changeset 3127006
- Timestamp:
- 07/29/2024 04:47:37 AM (20 months ago)
- Location:
- wcboost-products-compare/trunk
- Files:
-
- 5 edited
-
includes/compare-list.php (modified) (3 diffs)
-
includes/plugin.php (modified) (2 diffs)
-
languages/wcboost-products-compare.pot (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
wcboost-products-compare.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wcboost-products-compare/trunk/includes/compare-list.php
r3122349 r3127006 32 32 $this->id = wc_rand_hash(); 33 33 34 if ( did_action( 'wp_loaded' ) ) { 34 if ( ! did_action( 'wp_loaded' ) ) { 35 add_action( 'wp_loaded', [ $this, 'load_products_from_session' ] ); 36 } else { 35 37 $this->load_products_from_session(); 36 } else {37 add_action( 'wp_loaded', [ $this, 'load_products_from_session' ] );38 38 } 39 39 } … … 213 213 214 214 if ( $reset_db ) { 215 $this->id = '';216 215 $this->delete(); 217 216 } … … 350 349 public function delete_persistent_list() { 351 350 if ( $this->get_id() && get_current_user_id() && apply_filters( 'wcboost_products_compare_persistent_enabled', true ) ) { 352 delete_user_meta( get_current_user_id(), '_w oocommerce_persistent_cart_' . get_current_blog_id() );351 delete_user_meta( get_current_user_id(), '_wcboost_products_compare_' . get_current_blog_id() ); 353 352 } 354 353 } -
wcboost-products-compare/trunk/includes/plugin.php
r3122349 r3127006 177 177 * Initialize the list of compare products 178 178 * 179 * @return void 180 */ 181 public function initialize_list() { 182 $this->list = new Compare_List(); 183 184 $this->list->init(); 179 * @param bool $force Force initialization 180 * 181 * @return void 182 */ 183 public function initialize_list( $force = false ) { 184 if ( ! $this->list || $force ) { 185 $this->list = new Compare_List(); 186 187 $this->list->init(); 188 } 185 189 } 186 190 … … 196 200 197 201 if ( $reset_db ) { 198 $this->initialize_list( );202 $this->initialize_list( true ); 199 203 } 200 204 } -
wcboost-products-compare/trunk/languages/wcboost-products-compare.pot
r3122349 r3127006 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WCBoost - Products Compare 1.0. 6\n"5 "Project-Id-Version: WCBoost - Products Compare 1.0.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wcboost-products-compare\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-07-2 0T04:09:17+00:00\n"12 "POT-Creation-Date: 2024-07-29T04:38:16+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" -
wcboost-products-compare/trunk/readme.txt
r3122349 r3127006 3 3 Tags: woocommerce, compare, product, product compare, woocommerce compare 4 4 Tested up to: 6.6 5 Stable tag: 1.0. 65 Stable tag: 1.0.7 6 6 Requires PHP: 7.0 7 7 Requires at least: 4.5 8 8 WC requires at least: 3.0.0 9 WC tested up to: 8.99 WC tested up to: 9.1 10 10 License: GPLv3 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 111 111 == Changelog == 112 112 113 = 1.0.7 = 114 * Fixed - Cannot clear the comparison list. 115 * Tweak - WooCommerce 9.1 compatibility. 116 113 117 = 1.0.6 = 114 118 * Improve - Support persistent caching for logged-in users. … … 119 123 * Fixed - Adds the nofollow attribute to compare buttons 120 124 * Tweak - WordPress 6.5 compatibility. 121 * Tweak –WooCommerce 8.9 compatibility.125 * Tweak - WooCommerce 8.9 compatibility. 122 126 123 127 = 1.0.4 = -
wcboost-products-compare/trunk/wcboost-products-compare.php
r3122349 r3127006 5 5 * Plugin URI: https://wcboost.com/plugin/woocommerce-products-compare/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash 6 6 * Author: WCBoost 7 * Version: 1.0. 67 * Version: 1.0.7 8 8 * Author URI: https://wcboost.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash 9 9 * … … 15 15 * Tested up to: 6.6 16 16 * WC requires at least: 3.0.0 17 * WC tested up to: 8.917 * WC tested up to: 9.1 18 18 * 19 19 * @package WCBoost
Note: See TracChangeset
for help on using the changeset viewer.