Skip to content

Commit

Permalink
Version v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitridr committed Sep 6, 2017
1 parent d8cc00a commit b92da59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** Facebook for WooCommerce Changelog ***

2017-09-05 version 1.5.1
* Fix critical issue with ViewContent events not matching products.

2017-09-05 version 1.5.0
* Added support for generic WordPress installations (without WooCommerce)
* Added Search events
Expand Down
2 changes: 1 addition & 1 deletion facebook-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Grow your business on Facebook! Use this official plugin to help sell more of your products using Facebook. After completing the setup, you'll be ready to create ads that promote your products and you can also create a shop section on your Page where customers can browse your products on Facebook.
* Author: Facebook
* Author URI: https://www.facebook.com/
* Version: 1.5.0
* Version: 1.5.1
* Woo: 2127297:0ea4fe4c2d7ca6338f8a322fb3e4e187
* Text Domain: facebook-for-woocommerce
*/
Expand Down
2 changes: 1 addition & 1 deletion facebook-for-wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
* Author: Facebook
* Author URI: https://www.facebook.com/
* Version: 1.5.0
* Version: 1.5.1
* Text Domain: facebook-pixel
*/
/**
Expand Down
6 changes: 3 additions & 3 deletions includes/fbutils.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class WC_Facebookcommerce_Utils {

const FB_RETAILER_ID_PREFIX = 'wc_post_id_';
const PLUGIN_VERSION = '1.5.0'; // Change it in `facebook-for-*.php` also
const PLUGIN_VERSION = '1.5.1'; // Change it in `facebook-for-*.php` also

/**
* WooCommerce 2.1 support for wc_enqueue_js
Expand Down Expand Up @@ -107,11 +107,11 @@ function($item) {
* @return array
*/
public static function get_fb_content_ids($woo_product) {
return array_unique(array_filter(array(
return array_values(array_unique(array_filter(array(
$woo_product->get_sku(),
self::FB_RETAILER_ID_PREFIX . $woo_product->get_id(),
self::get_fb_retailer_id($woo_product)
)));
))));
}

/**
Expand Down

0 comments on commit b92da59

Please sign in to comment.