Plugin Directory

Changeset 3429737


Ignore:
Timestamp:
12/30/2025 04:34:22 PM (3 months ago)
Author:
orderable
Message:

Update to version 1.19.2 from GitHub

Location:
orderable
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • orderable/tags/1.19.2/inc/modules/live-view/class-live-view.php

    r3101824 r3429737  
    88defined( 'ABSPATH' ) || exit;
    99
     10use Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders;
    1011use Automattic\WooCommerce\Utilities\OrderUtil;
    1112
     
    149150        $location_id = empty( $_POST['data']['orderable_location_id'] ) ? '' : sanitize_text_field( wp_unslash( $_POST['data']['orderable_location_id'] ) );
    150151
    151         $orders = wc_get_orders(
    152             array(
    153                 'limit'                 => 1,
    154                 'orderable_location_id' => $location_id,
    155             )
    156         );
     152        $statuses = array_filter( array_keys( wc_get_order_statuses() ), fn( $status) => DraftOrders::DB_STATUS !== $status );
     153
     154        $args = [
     155            'limit'                 => 1,
     156            'orderable_location_id' => $location_id,
     157            'status'                => $statuses,
     158        ];
     159
     160        /**
     161         * Filter last order ID query args.
     162         *
     163         * @since 1.19.2
     164         * @hook orderable_live_view_last_order_id_query_args
     165         * @param  array $args The get orders query args.
     166         * @param  string $location_id The location ID. Empty for all locations.
     167         * @return array
     168         */
     169        $args = apply_filters( 'orderable_live_view_last_order_id_query_args', $args, $location_id );
     170
     171        $orders = wc_get_orders( $args );
    157172
    158173        remove_filter(
  • orderable/tags/1.19.2/languages/orderable.pot

    r3393695 r3429737  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-11-11 13:02+0000\n"
     9"POT-Creation-Date: 2025-12-30 15:19+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"
     
    398398msgstr ""
    399399
    400 #: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:266, inc/modules/live-view/class-live-view.php:266
     400#: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:281, inc/modules/live-view/class-live-view.php:281
    401401msgid "Live Order View"
    402402msgstr ""
     
    616616msgstr ""
    617617
    618 #: inc/modules/live-view/class-live-view.php:227
     618#: inc/modules/live-view/class-live-view.php:242
    619619msgid "Enable Live View"
    620620msgstr ""
    621621
    622 #: inc/modules/live-view/class-live-view.php:232
     622#: inc/modules/live-view/class-live-view.php:247
    623623msgid "Exit Live View"
    624624msgstr ""
    625625
    626 #: inc/modules/live-view/class-live-view.php:233
     626#: inc/modules/live-view/class-live-view.php:248
    627627msgid "Unmute"
    628628msgstr ""
    629629
    630 #: inc/modules/live-view/class-live-view.php:233
     630#: inc/modules/live-view/class-live-view.php:248
    631631msgid "Mute"
    632632msgstr ""
    633633
    634 #: inc/modules/live-view/class-live-view.php:308
     634#: inc/modules/live-view/class-live-view.php:323
    635635msgid "order_manager"
    636636msgstr ""
    637637
    638 #: inc/modules/live-view/class-live-view.php:308
     638#: inc/modules/live-view/class-live-view.php:323
    639639msgid "Order Manager"
    640640msgstr ""
  • orderable/tags/1.19.2/orderable.php

    r3393695 r3429737  
    44 * Author URI: https://orderable.com
    55 * Description: Take local online ordering to a whole new level with Orderable.
    6  * Version: 1.19.1
     6 * Version: 1.19.2
    77 * Author: Orderable
    88 * Text Domain: orderable
    99 * WC requires at least: 5.4.0
    10  * WC tested up to: 10.3
     10 * WC tested up to: 10.4
    1111 * Requires PHP: 7.4
    1212 */
     
    2121     * @var string Plugin version.
    2222     */
    23     public static $version = '1.19.1';
     23    public static $version = '1.19.2';
    2424
    2525    /**
  • orderable/tags/1.19.2/readme.txt

    r3393695 r3429737  
    33Tags: restaurant, food ordering, food menu, food delivery, restaurant menu
    44Requires at least: 5.4
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 1.19.1
     7Stable tag: 1.19.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    201201
    202202== Changelog ==
     203**v1.19.2** (30 Dez 2025)
     204[new] Dev filter: `orderable_live_view_last_order_id_query_args`
     205[fix] Live Order View not showing the latest order when placing an order via the Checkout block
     206
    203207**v1.19.1** (11 Nov 2025)
    204208[update] Settings page
  • orderable/trunk/inc/modules/live-view/class-live-view.php

    r3101824 r3429737  
    88defined( 'ABSPATH' ) || exit;
    99
     10use Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders;
    1011use Automattic\WooCommerce\Utilities\OrderUtil;
    1112
     
    149150        $location_id = empty( $_POST['data']['orderable_location_id'] ) ? '' : sanitize_text_field( wp_unslash( $_POST['data']['orderable_location_id'] ) );
    150151
    151         $orders = wc_get_orders(
    152             array(
    153                 'limit'                 => 1,
    154                 'orderable_location_id' => $location_id,
    155             )
    156         );
     152        $statuses = array_filter( array_keys( wc_get_order_statuses() ), fn( $status) => DraftOrders::DB_STATUS !== $status );
     153
     154        $args = [
     155            'limit'                 => 1,
     156            'orderable_location_id' => $location_id,
     157            'status'                => $statuses,
     158        ];
     159
     160        /**
     161         * Filter last order ID query args.
     162         *
     163         * @since 1.19.2
     164         * @hook orderable_live_view_last_order_id_query_args
     165         * @param  array $args The get orders query args.
     166         * @param  string $location_id The location ID. Empty for all locations.
     167         * @return array
     168         */
     169        $args = apply_filters( 'orderable_live_view_last_order_id_query_args', $args, $location_id );
     170
     171        $orders = wc_get_orders( $args );
    157172
    158173        remove_filter(
  • orderable/trunk/languages/orderable.pot

    r3393695 r3429737  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2025-11-11 13:02+0000\n"
     9"POT-Creation-Date: 2025-12-30 15:19+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"
     
    398398msgstr ""
    399399
    400 #: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:266, inc/modules/live-view/class-live-view.php:266
     400#: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:281, inc/modules/live-view/class-live-view.php:281
    401401msgid "Live Order View"
    402402msgstr ""
     
    616616msgstr ""
    617617
    618 #: inc/modules/live-view/class-live-view.php:227
     618#: inc/modules/live-view/class-live-view.php:242
    619619msgid "Enable Live View"
    620620msgstr ""
    621621
    622 #: inc/modules/live-view/class-live-view.php:232
     622#: inc/modules/live-view/class-live-view.php:247
    623623msgid "Exit Live View"
    624624msgstr ""
    625625
    626 #: inc/modules/live-view/class-live-view.php:233
     626#: inc/modules/live-view/class-live-view.php:248
    627627msgid "Unmute"
    628628msgstr ""
    629629
    630 #: inc/modules/live-view/class-live-view.php:233
     630#: inc/modules/live-view/class-live-view.php:248
    631631msgid "Mute"
    632632msgstr ""
    633633
    634 #: inc/modules/live-view/class-live-view.php:308
     634#: inc/modules/live-view/class-live-view.php:323
    635635msgid "order_manager"
    636636msgstr ""
    637637
    638 #: inc/modules/live-view/class-live-view.php:308
     638#: inc/modules/live-view/class-live-view.php:323
    639639msgid "Order Manager"
    640640msgstr ""
  • orderable/trunk/orderable.php

    r3393695 r3429737  
    44 * Author URI: https://orderable.com
    55 * Description: Take local online ordering to a whole new level with Orderable.
    6  * Version: 1.19.1
     6 * Version: 1.19.2
    77 * Author: Orderable
    88 * Text Domain: orderable
    99 * WC requires at least: 5.4.0
    10  * WC tested up to: 10.3
     10 * WC tested up to: 10.4
    1111 * Requires PHP: 7.4
    1212 */
     
    2121     * @var string Plugin version.
    2222     */
    23     public static $version = '1.19.1';
     23    public static $version = '1.19.2';
    2424
    2525    /**
  • orderable/trunk/readme.txt

    r3393695 r3429737  
    33Tags: restaurant, food ordering, food menu, food delivery, restaurant menu
    44Requires at least: 5.4
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 1.19.1
     7Stable tag: 1.19.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    201201
    202202== Changelog ==
     203**v1.19.2** (30 Dez 2025)
     204[new] Dev filter: `orderable_live_view_last_order_id_query_args`
     205[fix] Live Order View not showing the latest order when placing an order via the Checkout block
     206
    203207**v1.19.1** (11 Nov 2025)
    204208[update] Settings page
Note: See TracChangeset for help on using the changeset viewer.