Skip to content

Commit c745bd2

Browse files
committed
fox false positive
1 parent 3f7031f commit c745bd2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

includes/API/Orders_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function maybe_set_item_meta_data( $item, $posted ) {
342342
parent::maybe_set_item_meta_data( $item, $posted );
343343

344344
// Ensure this is a product line item, not a fee or shipping
345-
if ( ! $item instanceof WC_Order_Item_Product ) {
345+
if ( ! is_object( $item ) || get_class( $item ) !== 'WC_Order_Item_Product' ) {
346346
return;
347347
}
348348

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wcpos/woocommerce-pos",
3-
"version": "1.7.6",
3+
"version": "1.7.7",
44
"description": "A simple front-end for taking WooCommerce orders at the Point of Sale.",
55
"main": "index.js",
66
"workspaces": {

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: kilbot
33
Tags: ecommerce, point-of-sale, pos, inventory, woocommerce
44
Requires at least: 5.6
55
Tested up to: 6.8
6-
Stable tag: 1.7.6
6+
Stable tag: 1.7.7
77
License: GPL-3.0
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -88,7 +88,7 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co
8888

8989
== Changelog ==
9090

91-
= 1.7.6 - 2025/04/14 =
91+
= 1.7.7 - 2025/04/14 =
9292
* Fix: issue where variant was not saving properly in the Order Item meta data
9393

9494
= 1.7.5 - 2025/04/09 =

woocommerce-pos.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce POS
44
* Plugin URI: https://wordpress.org/plugins/woocommerce-pos/
55
* Description: A simple front-end for taking WooCommerce orders at the Point of Sale. Requires <a href="http://wordpress.org/plugins/woocommerce/">WooCommerce</a>.
6-
* Version: 1.7.6
6+
* Version: 1.7.7
77
* Author: kilbot
88
* Author URI: http://wcpos.com
99
* Text Domain: woocommerce-pos
@@ -24,7 +24,7 @@
2424
namespace WCPOS\WooCommercePOS;
2525

2626
// Define plugin constants.
27-
const VERSION = '1.7.6';
27+
const VERSION = '1.7.7';
2828
const PLUGIN_NAME = 'woocommerce-pos';
2929
const SHORT_NAME = 'wcpos';
3030
\define( __NAMESPACE__ . '\PLUGIN_FILE', plugin_basename( __FILE__ ) ); // 'woocommerce-pos/woocommerce-pos.php'

0 commit comments

Comments
 (0)