Changeset 3429737
- Timestamp:
- 12/30/2025 04:34:22 PM (3 months ago)
- Location:
- orderable
- Files:
-
- 8 edited
- 1 copied
-
tags/1.19.2 (copied) (copied from orderable/trunk)
-
tags/1.19.2/inc/modules/live-view/class-live-view.php (modified) (2 diffs)
-
tags/1.19.2/languages/orderable.pot (modified) (3 diffs)
-
tags/1.19.2/orderable.php (modified) (2 diffs)
-
tags/1.19.2/readme.txt (modified) (2 diffs)
-
trunk/inc/modules/live-view/class-live-view.php (modified) (2 diffs)
-
trunk/languages/orderable.pot (modified) (3 diffs)
-
trunk/orderable.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
orderable/tags/1.19.2/inc/modules/live-view/class-live-view.php
r3101824 r3429737 8 8 defined( 'ABSPATH' ) || exit; 9 9 10 use Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders; 10 11 use Automattic\WooCommerce\Utilities\OrderUtil; 11 12 … … 149 150 $location_id = empty( $_POST['data']['orderable_location_id'] ) ? '' : sanitize_text_field( wp_unslash( $_POST['data']['orderable_location_id'] ) ); 150 151 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 ); 157 172 158 173 remove_filter( -
orderable/tags/1.19.2/languages/orderable.pot
r3393695 r3429737 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2025-1 1-11 13:02+0000\n"9 "POT-Creation-Date: 2025-12-30 15:19+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" … … 398 398 msgstr "" 399 399 400 #: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:2 66, inc/modules/live-view/class-live-view.php:266400 #: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:281, inc/modules/live-view/class-live-view.php:281 401 401 msgid "Live Order View" 402 402 msgstr "" … … 616 616 msgstr "" 617 617 618 #: inc/modules/live-view/class-live-view.php:2 27618 #: inc/modules/live-view/class-live-view.php:242 619 619 msgid "Enable Live View" 620 620 msgstr "" 621 621 622 #: inc/modules/live-view/class-live-view.php:2 32622 #: inc/modules/live-view/class-live-view.php:247 623 623 msgid "Exit Live View" 624 624 msgstr "" 625 625 626 #: inc/modules/live-view/class-live-view.php:2 33626 #: inc/modules/live-view/class-live-view.php:248 627 627 msgid "Unmute" 628 628 msgstr "" 629 629 630 #: inc/modules/live-view/class-live-view.php:2 33630 #: inc/modules/live-view/class-live-view.php:248 631 631 msgid "Mute" 632 632 msgstr "" 633 633 634 #: inc/modules/live-view/class-live-view.php:3 08634 #: inc/modules/live-view/class-live-view.php:323 635 635 msgid "order_manager" 636 636 msgstr "" 637 637 638 #: inc/modules/live-view/class-live-view.php:3 08638 #: inc/modules/live-view/class-live-view.php:323 639 639 msgid "Order Manager" 640 640 msgstr "" -
orderable/tags/1.19.2/orderable.php
r3393695 r3429737 4 4 * Author URI: https://orderable.com 5 5 * Description: Take local online ordering to a whole new level with Orderable. 6 * Version: 1.19. 16 * Version: 1.19.2 7 7 * Author: Orderable 8 8 * Text Domain: orderable 9 9 * WC requires at least: 5.4.0 10 * WC tested up to: 10. 310 * WC tested up to: 10.4 11 11 * Requires PHP: 7.4 12 12 */ … … 21 21 * @var string Plugin version. 22 22 */ 23 public static $version = '1.19. 1';23 public static $version = '1.19.2'; 24 24 25 25 /** -
orderable/tags/1.19.2/readme.txt
r3393695 r3429737 3 3 Tags: restaurant, food ordering, food menu, food delivery, restaurant menu 4 4 Requires at least: 5.4 5 Tested up to: 6. 85 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.19. 17 Stable tag: 1.19.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 201 201 202 202 == 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 203 207 **v1.19.1** (11 Nov 2025) 204 208 [update] Settings page -
orderable/trunk/inc/modules/live-view/class-live-view.php
r3101824 r3429737 8 8 defined( 'ABSPATH' ) || exit; 9 9 10 use Automattic\WooCommerce\Blocks\Domain\Services\DraftOrders; 10 11 use Automattic\WooCommerce\Utilities\OrderUtil; 11 12 … … 149 150 $location_id = empty( $_POST['data']['orderable_location_id'] ) ? '' : sanitize_text_field( wp_unslash( $_POST['data']['orderable_location_id'] ) ); 150 151 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 ); 157 172 158 173 remove_filter( -
orderable/trunk/languages/orderable.pot
r3393695 r3429737 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2025-1 1-11 13:02+0000\n"9 "POT-Creation-Date: 2025-12-30 15:19+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" … … 398 398 msgstr "" 399 399 400 #: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:2 66, inc/modules/live-view/class-live-view.php:266400 #: inc/class-settings.php:976, inc/modules/live-view/class-live-view.php:281, inc/modules/live-view/class-live-view.php:281 401 401 msgid "Live Order View" 402 402 msgstr "" … … 616 616 msgstr "" 617 617 618 #: inc/modules/live-view/class-live-view.php:2 27618 #: inc/modules/live-view/class-live-view.php:242 619 619 msgid "Enable Live View" 620 620 msgstr "" 621 621 622 #: inc/modules/live-view/class-live-view.php:2 32622 #: inc/modules/live-view/class-live-view.php:247 623 623 msgid "Exit Live View" 624 624 msgstr "" 625 625 626 #: inc/modules/live-view/class-live-view.php:2 33626 #: inc/modules/live-view/class-live-view.php:248 627 627 msgid "Unmute" 628 628 msgstr "" 629 629 630 #: inc/modules/live-view/class-live-view.php:2 33630 #: inc/modules/live-view/class-live-view.php:248 631 631 msgid "Mute" 632 632 msgstr "" 633 633 634 #: inc/modules/live-view/class-live-view.php:3 08634 #: inc/modules/live-view/class-live-view.php:323 635 635 msgid "order_manager" 636 636 msgstr "" 637 637 638 #: inc/modules/live-view/class-live-view.php:3 08638 #: inc/modules/live-view/class-live-view.php:323 639 639 msgid "Order Manager" 640 640 msgstr "" -
orderable/trunk/orderable.php
r3393695 r3429737 4 4 * Author URI: https://orderable.com 5 5 * Description: Take local online ordering to a whole new level with Orderable. 6 * Version: 1.19. 16 * Version: 1.19.2 7 7 * Author: Orderable 8 8 * Text Domain: orderable 9 9 * WC requires at least: 5.4.0 10 * WC tested up to: 10. 310 * WC tested up to: 10.4 11 11 * Requires PHP: 7.4 12 12 */ … … 21 21 * @var string Plugin version. 22 22 */ 23 public static $version = '1.19. 1';23 public static $version = '1.19.2'; 24 24 25 25 /** -
orderable/trunk/readme.txt
r3393695 r3429737 3 3 Tags: restaurant, food ordering, food menu, food delivery, restaurant menu 4 4 Requires at least: 5.4 5 Tested up to: 6. 85 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.19. 17 Stable tag: 1.19.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 201 201 202 202 == 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 203 207 **v1.19.1** (11 Nov 2025) 204 208 [update] Settings page
Note: See TracChangeset
for help on using the changeset viewer.