Changeset 3034639
- Timestamp:
- 02/12/2024 02:27:35 PM (2 years ago)
- Location:
- orderable
- Files:
-
- 8 edited
- 1 copied
-
tags/1.12.1 (copied) (copied from orderable/trunk)
-
tags/1.12.1/inc/modules/location/class-location-single.php (modified) (2 diffs)
-
tags/1.12.1/languages/orderable.pot (modified) (1 diff)
-
tags/1.12.1/orderable.php (modified) (2 diffs)
-
tags/1.12.1/readme.txt (modified) (2 diffs)
-
trunk/inc/modules/location/class-location-single.php (modified) (2 diffs)
-
trunk/languages/orderable.pot (modified) (1 diff)
-
trunk/orderable.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
orderable/tags/1.12.1/inc/modules/location/class-location-single.php
r3033248 r3034639 589 589 static $holidays_cache; 590 590 591 if ( ! is_null( $holidays_cache ) ) { 592 return $holidays_cache; 591 if ( ! empty( $holidays_cache[ $this->get_location_id() ] ) ) { 592 // phpcs:ignore WooCommerce.Commenting.CommentHooks 593 return apply_filters( 'orderable_location_get_holidays', $holidays_cache[ $this->get_location_id() ], $type, $include_defaults, $this ); 593 594 } 594 595 … … 683 684 * @param Orderable_Location_Single $location Location object. 684 685 */ 685 $holidays_cache = apply_filters( 'orderable_location_get_holidays', $holidays, $type, $include_defaults, $this ); 686 687 return $holidays_cache; 686 $holidays = apply_filters( 'orderable_location_get_holidays', $holidays, $type, $include_defaults, $this ); 687 688 $holidays_cache[ $this->get_location_id() ] = $holidays; 689 690 return $holidays; 688 691 } 689 692 -
orderable/tags/1.12.1/languages/orderable.pot
r3033248 r3034639 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2024-02-08 14: 03+0000\n"9 "POT-Creation-Date: 2024-02-08 14:23+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" -
orderable/tags/1.12.1/orderable.php
r3033248 r3034639 4 4 * Author URI: https://orderable.com 5 5 * Description: Take local online ordering to a whole new level with Orderable. 6 * Version: 1.12. 06 * Version: 1.12.1 7 7 * Author: Orderable 8 8 * Text Domain: orderable … … 20 20 * @var string Plugin version. 21 21 */ 22 public static $version = '1.12. 0';22 public static $version = '1.12.1'; 23 23 24 24 /** -
orderable/tags/1.12.1/readme.txt
r3033248 r3034639 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 1.12. 07 Stable tag: 1.12.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 145 145 146 146 == Changelog == 147 **v1.12.1** (12 Feb 2024) 148 [fix] Holidays cache issue 149 147 150 **v1.12.0** (08 Feb 2024) 148 151 [fix] Incorrect postcode not showing the message `No locations found offering delivery or pickup` -
orderable/trunk/inc/modules/location/class-location-single.php
r3033248 r3034639 589 589 static $holidays_cache; 590 590 591 if ( ! is_null( $holidays_cache ) ) { 592 return $holidays_cache; 591 if ( ! empty( $holidays_cache[ $this->get_location_id() ] ) ) { 592 // phpcs:ignore WooCommerce.Commenting.CommentHooks 593 return apply_filters( 'orderable_location_get_holidays', $holidays_cache[ $this->get_location_id() ], $type, $include_defaults, $this ); 593 594 } 594 595 … … 683 684 * @param Orderable_Location_Single $location Location object. 684 685 */ 685 $holidays_cache = apply_filters( 'orderable_location_get_holidays', $holidays, $type, $include_defaults, $this ); 686 687 return $holidays_cache; 686 $holidays = apply_filters( 'orderable_location_get_holidays', $holidays, $type, $include_defaults, $this ); 687 688 $holidays_cache[ $this->get_location_id() ] = $holidays; 689 690 return $holidays; 688 691 } 689 692 -
orderable/trunk/languages/orderable.pot
r3033248 r3034639 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2024-02-08 14: 03+0000\n"9 "POT-Creation-Date: 2024-02-08 14:23+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" -
orderable/trunk/orderable.php
r3033248 r3034639 4 4 * Author URI: https://orderable.com 5 5 * Description: Take local online ordering to a whole new level with Orderable. 6 * Version: 1.12. 06 * Version: 1.12.1 7 7 * Author: Orderable 8 8 * Text Domain: orderable … … 20 20 * @var string Plugin version. 21 21 */ 22 public static $version = '1.12. 0';22 public static $version = '1.12.1'; 23 23 24 24 /** -
orderable/trunk/readme.txt
r3033248 r3034639 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 1.12. 07 Stable tag: 1.12.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 145 145 146 146 == Changelog == 147 **v1.12.1** (12 Feb 2024) 148 [fix] Holidays cache issue 149 147 150 **v1.12.0** (08 Feb 2024) 148 151 [fix] Incorrect postcode not showing the message `No locations found offering delivery or pickup`
Note: See TracChangeset
for help on using the changeset viewer.