CTX Feed – WooCommerce Product Feed Manager Plugin - Version 2.2.23

Version Description

Download this release

Release Info

Developer wahid0003
Plugin Icon 128x128 CTX Feed – WooCommerce Product Feed Manager Plugin
Version 2.2.23
Comparing to
See all releases

Code changes from version 2.2.22 to 2.2.23

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webappick.com
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested up to: 4.9
7
- Stable tag: 2.2.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -296,6 +296,10 @@ Using pro version:
296
 
297
  == Changelog ==
298
 
 
 
 
 
299
  = 2.2.22(2018-10-10) =
300
  * Variations missing issue fixed
301
  * URL encoding issue with suffix fixed
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested up to: 4.9
7
+ Stable tag: 2.2.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
296
 
297
  == Changelog ==
298
 
299
+ = 2.2.23(2018-10-25) =
300
+ * Google Attribute cost_of_goods_sold added
301
+ * Visual Composer shortcode remove issue fixed
302
+
303
  = 2.2.22(2018-10-10) =
304
  * Variations missing issue fixed
305
  * URL encoding issue with suffix fixed
includes/class-woo-feed.php CHANGED
@@ -70,7 +70,7 @@ class Woo_Feed
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
- $this->version = '2.2.22';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
70
  public function __construct()
71
  {
72
  $this->woo_feed = 'woo-feed';
73
+ $this->version = '2.2.23';
74
 
75
  $this->load_dependencies();
76
  $this->set_locale();
includes/classes/class-woo-feed-default-attributes.php CHANGED
@@ -3677,6 +3677,7 @@ class Woo_Feed_Default_Attributes
3677
  "availability" => "Stock Status[availability]",
3678
  "price" => "Regular Price[price]",
3679
  "sale_price" => "Sale Price[sale_price]",
 
3680
  "sale_price_effective_date" => "Sale Price Effective Date[sale_price_effective_date]",
3681
  "---2" => "",
3682
 
3677
  "availability" => "Stock Status[availability]",
3678
  "price" => "Regular Price[price]",
3679
  "sale_price" => "Sale Price[sale_price]",
3680
+ "cost_of_goods_sold" => "Cost of Goods Sold[cost_of_goods_sold]",
3681
  "sale_price_effective_date" => "Sale Price Effective Date[sale_price_effective_date]",
3682
  "---2" => "",
3683
 
includes/classes/class-woo-feed-engine.php CHANGED
@@ -201,9 +201,7 @@ class WF_Engine
201
  $output = '<![CDATA[' . $output . ']]>';
202
  }elseif ($value22 == 9) {
203
  $output=$this->stripInvalidXml($output);
204
- //$output = preg_replace( '/[^[:print:]]/',' ',$output);
205
  }else if($value22 == 10){
206
- //$output=preg_replace("/\[[^]]+\]/","",$output);
207
  $output=$this->productClass->remove_short_codes($output);
208
  }
209
  }
201
  $output = '<![CDATA[' . $output . ']]>';
202
  }elseif ($value22 == 9) {
203
  $output=$this->stripInvalidXml($output);
 
204
  }else if($value22 == 10){
 
205
  $output=$this->productClass->remove_short_codes($output);
206
  }
207
  }
includes/classes/class-woo-feed-products.php CHANGED
@@ -1435,15 +1435,37 @@ class Woo_Feed_Products
1435
  return "";
1436
  }
1437
 
1438
- if(class_exists("WPBMap")){
1439
- WPBMap::addAllMappedShortcodes(); // This does all the work
1440
- $content = apply_filters( 'the_content',$content);
1441
- }
1442
-
1443
- return do_shortcode($content);
1444
 
1445
  }
1446
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1447
  /**
1448
  * Get formatted image url
1449
  *
1435
  return "";
1436
  }
1437
 
1438
+ $content=$this->stripInvalidXml($content);
1439
+ return strip_shortcodes($content);
 
 
 
 
1440
 
1441
  }
1442
 
1443
+ /**
1444
+ * Remove Invalid Character from XML
1445
+ *
1446
+ * @param $value
1447
+ *
1448
+ * @return string
1449
+ */
1450
+ public function stripInvalidXml($value) {
1451
+ $ret = "";
1452
+ $current="";
1453
+ if (empty($value)) {
1454
+ return $ret;
1455
+ }
1456
+ $length = strlen($value);
1457
+ for ($i=0; $i < $length; $i++) {
1458
+ $current = ord($value{$i});
1459
+ if (($current == 0x9) || ($current == 0xA) || ($current == 0xD) || (($current >= 0x20) && ($current <= 0xD7FF)) || (($current >= 0xE000) && ($current <= 0xFFFD)) || (($current >= 0x10000) && ($current <= 0x10FFFF))) {
1460
+ $ret .= chr($current);
1461
+ }
1462
+ else {
1463
+ $ret .= "";
1464
+ }
1465
+ }
1466
+ return $ret;
1467
+ }
1468
+
1469
  /**
1470
  * Get formatted image url
1471
  *
woo-feed.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
- * Version: 2.2.22
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
16
  * Plugin Name: WooCommerce Product Feed
17
  * Plugin URI: https://webappick.com/
18
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
19
+ * Version: 2.2.23
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2