diff options
author | Yury German <blueknight@gentoo.org> | 2017-03-07 20:49:57 -0500 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2017-03-07 20:49:57 -0500 |
commit | 4aef42856734c8d67b06814ff6c97b101869836b (patch) | |
tree | dd94b6858923fa285673285940bcd74be3bb5eb9 /plugins/jetpack/sync/class.jetpack-sync-module-woocommerce.php | |
parent | Update plugin wordpress-mobile-pack 2.2.8 (diff) | |
download | blogs-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.php | 5 |
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 )" ); |