CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.7.13

Version Description

(2020-09-05) = * Fix: Feed file was renamed while feed name changing.

Download this release

Release Info

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

Code changes from version 3.7.12 to 3.7.13

Files changed (2) hide show
  1. README.txt +4 -1
  2. woo-feed.php +17 -17
README.txt CHANGED
@@ -5,7 +5,7 @@ Tags:product feed,woocommerce product feed,google shopping feed,google shopping,
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 3.7.12
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -308,6 +308,9 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
311
  = 3.7.12 (2020-09-03) =
312
  * Added: ProfitShare template added.
313
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 3.7.13
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
308
 
309
  == Changelog ==
310
 
311
+ = 3.7.13 (2020-09-05) =
312
+ * Fix: Feed file was renamed while feed name changing.
313
+
314
  = 3.7.12 (2020-09-03) =
315
  * Added: ProfitShare template added.
316
 
woo-feed.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
  *
14
- * Version: 3.7.12
15
  * Author: WebAppick
16
  * Author URI: https://webappick.com/
17
  * License: GPL v2
@@ -39,7 +39,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
39
  * @var string
40
  * @since 3.1.6
41
  */
42
- define( 'WOO_FEED_FREE_VERSION', '3.7.12' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
@@ -617,21 +617,21 @@ if ( ! function_exists( 'woo_feed_manage_feed' ) ) {
617
  // check if name is changed... save as new, rename feed isn't implemented ... it can be...
618
  // delete old feed save data as new feed.
619
  $feed_option_name = ( isset( $_POST['feed_option_name'] ) && ! empty( $_POST['feed_option_name'] ) ) ? sanitize_text_field( $_POST['feed_option_name'] ) : null;
620
- if ( $_POST['filename'] !== $_POST['feed_option_name'] ) {
621
- $feed_option_name = ( isset( $_POST['filename'] ) && ! empty( $_POST['filename'] ) ) ? sanitize_text_field( $_POST['filename'] ) : null;
622
- // Delete old feed info & file
623
- delete_option( 'wf_feed_' . $_POST['feed_option_name'] );
624
- delete_option( 'wf_config' . $_POST['feed_option_name'] );
625
-
626
- $upload_dir = wp_get_upload_dir();
627
- $feedService = $_POST['provider'];
628
- $type = $_POST['feedType'];
629
- $old_name = $_POST['feed_option_name'];
630
- $path = $upload_dir['basedir'] . '/woo-feed/' . $feedService . '/' . $type . '/' . $old_name . '.' . $type;
631
- if ( file_exists( $path ) ) {
632
- unlink( $path );
633
- }
634
- }
635
  // if form submitted via $_POST['edit-feed'] then only config and regenerate otherwise only update the config...
636
  // no need to check other submit button ... eg. $_POST['save_feed_config']
637
  $fileName = woo_feed_save_feed_config_data( $_POST, $feed_option_name, isset( $_POST['edit-feed'] ) );
11
  * Plugin URI: https://webappick.com/
12
  * Description: Easily generate woocommerce product feed for any marketing channel like Google Shopping(Merchant), Facebook Remarketing, Bing, eBay & more. Support 100+ Merchants.
13
  *
14
+ * Version: 3.7.13
15
  * Author: WebAppick
16
  * Author URI: https://webappick.com/
17
  * License: GPL v2
39
  * @var string
40
  * @since 3.1.6
41
  */
42
+ define( 'WOO_FEED_FREE_VERSION', '3.7.13' );
43
  }
44
 
45
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
617
  // check if name is changed... save as new, rename feed isn't implemented ... it can be...
618
  // delete old feed save data as new feed.
619
  $feed_option_name = ( isset( $_POST['feed_option_name'] ) && ! empty( $_POST['feed_option_name'] ) ) ? sanitize_text_field( $_POST['feed_option_name'] ) : null;
620
+ // if ( $_POST['filename'] !== $_POST['feed_option_name'] ) {
621
+ // $feed_option_name = ( isset( $_POST['filename'] ) && ! empty( $_POST['filename'] ) ) ? sanitize_text_field( $_POST['filename'] ) : null;
622
+ // // Delete old feed info & file
623
+ // delete_option( 'wf_feed_' . $_POST['feed_option_name'] );
624
+ // delete_option( 'wf_config' . $_POST['feed_option_name'] );
625
+ //
626
+ // $upload_dir = wp_get_upload_dir();
627
+ // $feedService = $_POST['provider'];
628
+ // $type = $_POST['feedType'];
629
+ // $old_name = $_POST['feed_option_name'];
630
+ // $path = $upload_dir['basedir'] . '/woo-feed/' . $feedService . '/' . $type . '/' . $old_name . '.' . $type;
631
+ // if ( file_exists( $path ) ) {
632
+ // unlink( $path );
633
+ // }
634
+ // }
635
  // if form submitted via $_POST['edit-feed'] then only config and regenerate otherwise only update the config...
636
  // no need to check other submit button ... eg. $_POST['save_feed_config']
637
  $fileName = woo_feed_save_feed_config_data( $_POST, $feed_option_name, isset( $_POST['edit-feed'] ) );