summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2017-03-07 20:49:57 -0500
committerYury German <blueknight@gentoo.org>2017-03-07 20:49:57 -0500
commit4aef42856734c8d67b06814ff6c97b101869836b (patch)
treedd94b6858923fa285673285940bcd74be3bb5eb9 /plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
parentUpdate plugin wordpress-mobile-pack 2.2.8 (diff)
downloadblogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.tar.gz
blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.tar.bz2
blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.zip
Jetpack upgrade 4.7
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php b/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
index f411f413..228ee4ea 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php
@@ -4,7 +4,7 @@ require_once JETPACK__PLUGIN_DIR . '/sync/class.jetpack-sync-module.php';
class Jetpack_Sync_Module_WooCommerce extends Jetpack_Sync_Module {
- private $meta_whitelist = array(
+ private $meta_whitelist = array(
'_product_id',
'_variation_id',
'_qty',
@@ -14,6 +14,7 @@ class Jetpack_Sync_Module_WooCommerce extends Jetpack_Sync_Module {
'_line_total',
'_line_tax',
'_line_tax_data',
+ '_visibility',
);
private $order_item_table_name;
@@ -68,7 +69,7 @@ class Jetpack_Sync_Module_WooCommerce extends Jetpack_Sync_Module {
$order_item_ids_sql = implode( ', ', array_map( 'intval', $order_item_ids ) );
- $order_items = $wpdb->get_results(
+ $order_items = $wpdb->get_results(
"SELECT * FROM $this->order_item_table_name WHERE order_item_id IN ( $order_item_ids_sql )"
);