Product Feed PRO for WooCommerce - Version 11.8.9

Version Description

Firstname and first character of an users lastname are now being used in Google review feeds

Download this release

Release Info

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

Code changes from version 11.8.8 to 11.8.9

classes/class-get-products.php CHANGED
@@ -91,21 +91,24 @@ class WooSEA_Get_Products {
91
 
92
  // Names need to be anonomyzed
93
  $name_pieces = explode(" ", $review_raw->comment_author);
94
- $nr_name_pieces = count($name_pieces);
95
- $cnt = 0;
96
- $name = "";
97
- foreach($name_pieces as $n_piece){
98
- $n_piece = str_replace("&", "", $n_piece);
99
-
100
- if($cnt > 0){
101
- $n_piece = ucfirst(substr($n_piece, 0, 1));
102
- }
103
- $name .= $n_piece." ";
104
- $cnt++;
105
  }
106
 
 
 
 
107
  // Remove strange charachters from reviewer name
108
- $review['reviewer_name'] = $this->rip_tags(trim(ucfirst($name)));
109
  $review['reviewer_name'] = html_entity_decode((str_replace("\r", "", $review['reviewer_name'])), ENT_QUOTES | ENT_XML1, 'UTF-8');
110
  $review['reviewer_name'] = preg_replace( '/\[(.*?)\]/', ' ', $review['reviewer_name'] );
111
  $review['reviewer_name'] = str_replace(" ", "", $review['reviewer_name']);
91
 
92
  // Names need to be anonomyzed
93
  $name_pieces = explode(" ", $review_raw->comment_author);
94
+
95
+ if ( empty($review_raw->comment_author) ) {
96
+ if (!empty($review_raw->user_id)){
97
+ $user=get_userdata($review_raw->user_id);
98
+ $author=$user->first_name.' '.substr($user->last_name,0,1).'.'; // this is the actual line you want to change
99
+ } else {
100
+ $author = __('Anonymous');
101
+ }
102
+ } else {
103
+ $user=get_userdata($review_raw->user_id);
104
+ $author=$user->first_name.' '.substr($user->last_name,0,1).'.'; // this is the actual line you want to change
105
  }
106
 
107
+ $author = str_replace("&", "", $author);
108
+ $author = ucfirst($author);
109
+
110
  // Remove strange charachters from reviewer name
111
+ $review['reviewer_name'] = $this->rip_tags(trim(ucfirst($author)));
112
  $review['reviewer_name'] = html_entity_decode((str_replace("\r", "", $review['reviewer_name'])), ENT_QUOTES | ENT_XML1, 'UTF-8');
113
  $review['reviewer_name'] = preg_replace( '/\[(.*?)\]/', ' ', $review['reviewer_name'] );
114
  $review['reviewer_name'] = str_replace(" ", "", $review['reviewer_name']);
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.8.8',
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.8.9',
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.8.8
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.8.8 (2022-10-01) =
349
  * Added a htmlspecialchars call on review names
350
 
@@ -3797,6 +3800,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
3797
 
3798
  == Upgrade Notice ==
3799
 
 
 
 
3800
  = 11.8.8 =
3801
  Added a htmlspecialchars call on review names
3802
 
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.8.9
9
 
10
  == Description ==
11
 
345
 
346
  === Changelog ===
347
 
348
+ = 11.8.9 (2022-10-07) =
349
+ * Firstname and first character of an users lastname are now being used in Google review feeds
350
+
351
  = 11.8.8 (2022-10-01) =
352
  * Added a htmlspecialchars call on review names
353
 
3800
 
3801
  == Upgrade Notice ==
3802
 
3803
+ = 11.8.9 =
3804
+ Firstname and first character of an users lastname are now being used in Google review feeds
3805
+
3806
  = 11.8.8 =
3807
  Added a htmlspecialchars call on review names
3808
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 11.8.8
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.8.8' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 11.8.9
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.8.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54