Plugin Directory

Changeset 3034639


Ignore:
Timestamp:
02/12/2024 02:27:35 PM (2 years ago)
Author:
orderable
Message:

Update to version 1.12.1 from GitHub

Location:
orderable
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • orderable/tags/1.12.1/inc/modules/location/class-location-single.php

    r3033248 r3034639  
    589589        static $holidays_cache;
    590590
    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 );
    593594        }
    594595
     
    683684         * @param Orderable_Location_Single $location         Location object.
    684685         */
    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;
    688691    }
    689692
  • orderable/tags/1.12.1/languages/orderable.pot

    r3033248 r3034639  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"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"
    1010"X-Poedit-Basepath: ..\n"
    1111"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  
    44 * Author URI: https://orderable.com
    55 * Description: Take local online ordering to a whole new level with Orderable.
    6  * Version: 1.12.0
     6 * Version: 1.12.1
    77 * Author: Orderable
    88 * Text Domain: orderable
     
    2020     * @var string Plugin version.
    2121     */
    22     public static $version = '1.12.0';
     22    public static $version = '1.12.1';
    2323
    2424    /**
  • orderable/tags/1.12.1/readme.txt

    r3033248 r3034639  
    55Tested up to: 6.4
    66Requires PHP: 5.6
    7 Stable tag: 1.12.0
     7Stable tag: 1.12.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    145145
    146146== Changelog ==
     147**v1.12.1** (12 Feb 2024)
     148[fix] Holidays cache issue 
     149
    147150**v1.12.0** (08 Feb 2024)
    148151[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  
    589589        static $holidays_cache;
    590590
    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 );
    593594        }
    594595
     
    683684         * @param Orderable_Location_Single $location         Location object.
    684685         */
    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;
    688691    }
    689692
  • orderable/trunk/languages/orderable.pot

    r3033248 r3034639  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"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"
    1010"X-Poedit-Basepath: ..\n"
    1111"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  
    44 * Author URI: https://orderable.com
    55 * Description: Take local online ordering to a whole new level with Orderable.
    6  * Version: 1.12.0
     6 * Version: 1.12.1
    77 * Author: Orderable
    88 * Text Domain: orderable
     
    2020     * @var string Plugin version.
    2121     */
    22     public static $version = '1.12.0';
     22    public static $version = '1.12.1';
    2323
    2424    /**
  • orderable/trunk/readme.txt

    r3033248 r3034639  
    55Tested up to: 6.4
    66Requires PHP: 5.6
    7 Stable tag: 1.12.0
     7Stable tag: 1.12.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    145145
    146146== Changelog ==
     147**v1.12.1** (12 Feb 2024)
     148[fix] Holidays cache issue 
     149
    147150**v1.12.0** (08 Feb 2024)
    148151[fix] Incorrect postcode not showing the message `No locations found offering delivery or pickup` 
Note: See TracChangeset for help on using the changeset viewer.