Product Feed PRO for WooCommerce - Version 11.7.3

Version Description

Solved an issue with Uncaught TypeError: array_intersect()

Download this release

Release Info

Developer jorisverwater
Plugin Icon 128x128 Product Feed PRO for WooCommerce
Version 11.7.3
Comparing to
See all releases

Code changes from version 11.7.2 to 11.7.3

Files changed (3) hide show
  1. js/woosea_key.js +1 -1
  2. readme.txt +7 -1
  3. woocommerce-sea.php +8 -6
js/woosea_key.js CHANGED
@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
26
  var license_key = $('#license-key').val();
27
 
28
  jQuery.ajax({
29
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.7.2',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
26
  var license_key = $('#license-key').val();
27
 
28
  jQuery.ajax({
29
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.7.3',
30
  jsonp: 'callback',
31
  dataType: 'jsonp',
32
  type: 'GET',
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Google Shopping Feed, Facebook feed, Facebook catalog feed, WooCommerce Product Feed, Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Pixels, Conversion API
6
  Requires at least: 4.5
7
  Tested up to: 6.0
8
- Stable tag: 11.7.2
9
 
10
  == Description ==
11
 
@@ -345,6 +345,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
345
 
346
  === Changelog ===
347
 
 
 
 
348
  = 11.7.2 (2022-07-14) =
349
  * Replaced substr with mb_substr for the product descriptions
350
 
@@ -3749,6 +3752,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3749
 
3750
  == Upgrade Notice ==
3751
 
 
 
 
3752
  = 11.7.2 =
3753
  Replaced substr with mb_substr for the product descriptions
3754
 
5
  Tags: Google Shopping Feed, Facebook feed, Facebook catalog feed, WooCommerce Product Feed, Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Pixels, Conversion API
6
  Requires at least: 4.5
7
  Tested up to: 6.0
8
+ Stable tag: 11.7.3
9
 
10
  == Description ==
11
 
345
 
346
  === Changelog ===
347
 
348
+ = 11.7.3 (2022-07-15) =
349
+ * Solved an issue with Uncaught TypeError: array_intersect()
350
+
351
  = 11.7.2 (2022-07-14) =
352
  * Replaced substr with mb_substr for the product descriptions
353
 
3752
 
3753
  == Upgrade Notice ==
3754
 
3755
+ = 11.7.3 =
3756
+ Solved an issue with Uncaught TypeError: array_intersect()
3757
+
3758
  = 11.7.2 =
3759
  Replaced substr with mb_substr for the product descriptions
3760
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.7.2
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Catalog managers, Remarketing, Bing, Skroutz, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
@@ -48,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.7.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -1614,10 +1614,12 @@ function woosea_product_fix_structured_data( $product = null ) {
1614
  $product_variations = new WC_Product_Variation( $child_val );
1615
  $variations = array_filter($product_variations->get_variation_attributes());
1616
  $from_url = str_replace("\\","",sanitize_text_field($_GET),$i);
1617
- $intersect = array_intersect($from_url, $variations);
1618
- if($variations == $intersect){
1619
- $variation_id = $child_val;
1620
- }
 
 
1621
  }
1622
 
1623
  if(isset($variation_id )){
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 11.7.3
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Catalog managers, Remarketing, Bing, Skroutz, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.7.3' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1614
  $product_variations = new WC_Product_Variation( $child_val );
1615
  $variations = array_filter($product_variations->get_variation_attributes());
1616
  $from_url = str_replace("\\","",sanitize_text_field($_GET),$i);
1617
+ if(is_array($from_url)){
1618
+ $intersect = array_intersect($from_url, $variations);
1619
+ if($variations == $intersect){
1620
+ $variation_id = $child_val;
1621
+ }
1622
+ }
1623
  }
1624
 
1625
  if(isset($variation_id )){