CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.1.31

Version Description

(2019-10-3) = * Strip divi builder shortcode from product description and short-description. * Delete old feed file before regenerate.

Download this release

Release Info

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

Code changes from version 3.1.30 to 3.1.31

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: 5.2
7
- Stable tag: 3.1.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -303,6 +303,11 @@ Using pro version:
303
  2. FTP info config
304
 
305
  == Changelog ==
 
 
 
 
 
306
  = 3.1.30 (2019-10-2) =
307
  * Fix Feed doesn't include last product variation
308
 
4
  Tags:woocommerce,google product feed,facebook product feed,woocommerce product feed,woocommerce,
5
  Requires at least: 3.6
6
  Tested Up To: 5.2
7
+ Stable tag: 3.1.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
303
  2. FTP info config
304
 
305
  == Changelog ==
306
+
307
+ = 3.1.31 (2019-10-3) =
308
+ * Strip divi builder shortcode from product description and short-description.
309
+ * Delete old feed file before regenerate.
310
+
311
  = 3.1.30 (2019-10-2) =
312
  * Fix Feed doesn't include last product variation
313
 
admin/css/selectize.css CHANGED
File without changes
admin/js/selectize.min.js CHANGED
File without changes
admin/js/wp-selectize.js CHANGED
File without changes
includes/classes/class-woo-feed-products.php CHANGED
@@ -1424,11 +1424,15 @@ class Woo_Feed_Products
1424
  */
1425
  public function remove_short_codes($content)
1426
  {
1427
- if(empty($content)){
1428
  return "";
1429
  }
1430
- $content=do_shortcode($content);
1431
- $content=$this->stripInvalidXml($content);
 
 
 
 
1432
  return strip_shortcodes($content);
1433
 
1434
  }
1424
  */
1425
  public function remove_short_codes($content)
1426
  {
1427
+ if( empty( $content ) ) {
1428
  return "";
1429
  }
1430
+ $content = do_shortcode( $content );
1431
+ $content = $this->stripInvalidXml( $content );
1432
+ # Remove DIVI Builder Short Codes
1433
+ if( class_exists('ET_Builder_Module') || defined('ET_BUILDER_PLUGIN_VERSION')){
1434
+ $content = preg_replace('/\[\/?et_pb.*?\]/', '', $content);
1435
+ }
1436
  return strip_shortcodes($content);
1437
 
1438
  }
includes/classes/class-woo-feed-savefile.php CHANGED
@@ -17,10 +17,9 @@ class Woo_Feed_Savefile
17
  * @param $path
18
  * @return bool
19
  */
20
- public function checkDir($path)
21
- {
22
- if (!file_exists($path)) {
23
- return wp_mkdir_p($path);
24
  }
25
  return true;
26
  }
@@ -37,9 +36,14 @@ class Woo_Feed_Savefile
37
  * @param $info
38
  * @return bool
39
  */
40
- public function saveCSVFile($path, $file, $content, $info)
41
- {
42
- if ($this->checkDir($path)) {
 
 
 
 
 
43
  $fp = fopen($file, "wb");
44
 
45
  if ($info['delimiter'] == 'tab') {
@@ -87,13 +91,13 @@ class Woo_Feed_Savefile
87
  * @param $content
88
  * @return bool
89
  */
90
- public function saveFile($path, $file, $content)
91
- {
92
- if ($this->checkDir($path)) {
93
- $fp = fopen($file, "wb");
94
- fwrite($fp, $content);
95
- fclose($fp);
96
- chmod($file, 0777);
97
  update_option("WPF_DIRECTORY_PERMISSION_CHECK","");
98
  return true;
99
  } else {
17
  * @param $path
18
  * @return bool
19
  */
20
+ public function checkDir($path) {
21
+ if ( ! file_exists( $path ) ) {
22
+ return wp_mkdir_p( $path );
 
23
  }
24
  return true;
25
  }
36
  * @param $info
37
  * @return bool
38
  */
39
+ public function saveCSVFile($path, $file, $content, $info) {
40
+ if ( $this->checkDir( $path ) ) {
41
+ /**
42
+ * @TODO see below
43
+ * @see Woo_Feed_Savefile::saveFile()
44
+ */
45
+ if ( file_exists( $file ) ) @unlink( $file );
46
+
47
  $fp = fopen($file, "wb");
48
 
49
  if ($info['delimiter'] == 'tab') {
91
  * @param $content
92
  * @return bool
93
  */
94
+ public function saveFile($path, $file, $content) {
95
+ if ( $this->checkDir( $path ) ) {
96
+ if ( file_exists( $file ) ) @unlink( $file );
97
+ $fp = fopen( $file, "w+" );
98
+ fwrite( $fp, $content );
99
+ fclose( $fp );
100
+ chmod( $file, 0777 );
101
  update_option("WPF_DIRECTORY_PERMISSION_CHECK","");
102
  return true;
103
  } else {
public/class-woo-feed-public.php CHANGED
File without changes
public/css/woo-feed-public.css CHANGED
File without changes
public/index.php CHANGED
File without changes
public/js/woo-feed-public.js CHANGED
File without changes
public/partials/woo-feed-public-display.php CHANGED
File without changes
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: 3.1.30
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) {
36
  exit;
37
  }
38
 
39
- define( 'WOO_FEED_VERSION', '3.1.30' );
40
 
41
  /**
42
  * Plugin Path with trailing slash
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: 3.1.31
20
  * Author: WebAppick
21
  * Author URI: https://webappick.com/
22
  * License: GPL v2
36
  exit;
37
  }
38
 
39
+ define( 'WOO_FEED_VERSION', '3.1.31' );
40
 
41
  /**
42
  * Plugin Path with trailing slash