CTX Feed – WooCommerce Product Feed Manager Plugin - Version 4.0.4

Version Description

(2020-10-14) = * Fix: Performance enhancement. * Fix: Admin page code refactor.

Download this release

Release Info

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

Code changes from version 4.0.3 to 4.0.4

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: 4.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -308,6 +308,10 @@ Using pro version:
308
 
309
  == Changelog ==
310
 
 
 
 
 
311
  = 4.0.3 (2020-10-13) =
312
  * Tweak: Make feed button new look.
313
 
5
  Requires at least: 3.6
6
  Tested Up To: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 4.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
308
 
309
  == Changelog ==
310
 
311
+ = 4.0.4 (2020-10-14) =
312
+ * Fix: Performance enhancement.
313
+ * Fix: Admin page code refactor.
314
+
315
  = 4.0.3 (2020-10-13) =
316
  * Tweak: Make feed button new look.
317
 
admin/class-woo-feed-admin.php CHANGED
@@ -74,7 +74,7 @@ class Woo_Feed_Admin {
74
  wp_register_style( 'slick', plugin_dir_url( __FILE__ ) . 'css/slick' . $ext, array(), $this->version );
75
  wp_register_style( 'slick-theme', plugin_dir_url( __FILE__ ) . 'css/slick-theme' . $ext, array(), $this->version );
76
  $mainDeps = array( 'selectize', 'fancy-select', 'list-tables', 'edit' );
77
- if ( 'woo-feed_page_webappick-feed-pro-vs-free' == $hook ) {
78
  $mainDeps = array_merge( $mainDeps, array( 'slick', 'slick-theme' ) );
79
  }
80
  }
@@ -147,8 +147,8 @@ class Woo_Feed_Admin {
147
  ],
148
  ],
149
  'nonce' => wp_create_nonce( 'wpf_feed_nonce' ),
150
- 'is_feed_edit' => isset( $_GET['page'], $_GET['action'] ) && 'webappick-manage-feeds' == $_GET['page'] && 'edit-feed' == $_GET['action'], // phpcs:ignore WordPress.Security.NonceVerification.Recommended
151
- 'is_feed_add' => isset( $_GET['page'] ) && 'webappick-new-feed' == $_GET['page'], // phpcs:ignore WordPress.Security.NonceVerification.Recommended
152
  'na' => esc_html__( 'N/A', 'woo-feed' ),
153
  'regenerate' => esc_html__( 'Generating...', 'woo-feed' ),
154
  'learn_more' => esc_html__( 'Learn More..', 'woo-feed' ),
@@ -180,7 +180,7 @@ class Woo_Feed_Admin {
180
  // phpcs:ignore WordPress.Security.NonceVerification.Recommended
181
  if ( ( isset( $_GET['feed_created'] ) || isset( $_GET['feed_updated'] ) || isset( $_GET['feed_imported'] ) ) && isset( $_GET['feed_regenerate'] ) && 1 == $_GET['feed_regenerate'] ) {
182
  // phpcs:ignore WordPress.Security.NonceVerification.Recommended
183
- $fileName = isset( $_GET['feed_name'] ) && ! empty( $_GET['feed_name'] ) ? sanitize_text_field( $_GET['feed_name'] ) : ''; // trigger feed regenerate...
184
  if ( ! empty( $fileName ) ) {
185
  // filename must be wf_config+XXX format for js to work.
186
  $js_opts['generator']['feed'] = 'wf_config' . woo_feed_extract_feed_option_name( $fileName );
74
  wp_register_style( 'slick', plugin_dir_url( __FILE__ ) . 'css/slick' . $ext, array(), $this->version );
75
  wp_register_style( 'slick-theme', plugin_dir_url( __FILE__ ) . 'css/slick-theme' . $ext, array(), $this->version );
76
  $mainDeps = array( 'selectize', 'fancy-select', 'list-tables', 'edit' );
77
+ if ( 'woo-feed_page_webappick-feed-pro-vs-free' === $hook ) {
78
  $mainDeps = array_merge( $mainDeps, array( 'slick', 'slick-theme' ) );
79
  }
80
  }
147
  ],
148
  ],
149
  'nonce' => wp_create_nonce( 'wpf_feed_nonce' ),
150
+ 'is_feed_edit' => isset( $_GET['page'], $_GET['action'] ) && 'webappick-manage-feeds' === $_GET['page'] && 'edit-feed' === $_GET['action'], // phpcs:ignore WordPress.Security.NonceVerification.Recommended
151
+ 'is_feed_add' => isset( $_GET['page'] ) && 'webappick-new-feed' === $_GET['page'], // phpcs:ignore WordPress.Security.NonceVerification.Recommended
152
  'na' => esc_html__( 'N/A', 'woo-feed' ),
153
  'regenerate' => esc_html__( 'Generating...', 'woo-feed' ),
154
  'learn_more' => esc_html__( 'Learn More..', 'woo-feed' ),
180
  // phpcs:ignore WordPress.Security.NonceVerification.Recommended
181
  if ( ( isset( $_GET['feed_created'] ) || isset( $_GET['feed_updated'] ) || isset( $_GET['feed_imported'] ) ) && isset( $_GET['feed_regenerate'] ) && 1 == $_GET['feed_regenerate'] ) {
182
  // phpcs:ignore WordPress.Security.NonceVerification.Recommended
183
+ $fileName = isset( $_GET['feed_name'] ) && ! empty( $_GET['feed_name'] ) ? sanitize_text_field( wp_unslash($_GET['feed_name']) ) : ''; // trigger feed regenerate...
184
  if ( ! empty( $fileName ) ) {
185
  // filename must be wf_config+XXX format for js to work.
186
  $js_opts['generator']['feed'] = 'wf_config' . woo_feed_extract_feed_option_name( $fileName );
admin/class-woo-feed-category-list.php CHANGED
@@ -183,7 +183,7 @@ class Woo_Feed_Category_list extends Woo_Feed_List_Table {
183
 
184
  /** Text displayed when no contact data is available */
185
  public function no_items() {
186
- _e( 'No mapping available.', 'woo-feed' );
187
  }
188
 
189
 
@@ -307,7 +307,7 @@ class Woo_Feed_Category_list extends Woo_Feed_List_Table {
307
  * @see $this->prepare_items()
308
  **************************************************************************/
309
  public function process_bulk_action() {
310
- $nonce = isset( $_REQUEST['_wpnonce'] ) && ! empty( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( $_REQUEST['_wpnonce'] ) : '';
311
  // Detect when a bulk action is being triggered...
312
  if ( 'delete-mapping' === $this->current_action() ) {
313
  // In our file that handles the request, verify the nonce.
@@ -337,7 +337,7 @@ class Woo_Feed_Category_list extends Woo_Feed_List_Table {
337
  }
338
 
339
  // If the delete bulk action is triggered
340
- if ( ( isset( $_POST['mapping'] ) ) && ( isset( $_POST['action'] ) && 'bulk-delete' == $_POST['action'] ) || ( isset( $_POST['action2'] ) && 'bulk-delete' == $_POST['action2'] ) ) {
341
  if ( 'bulk-delete' === $this->current_action() ) {
342
  if ( ! wp_verify_nonce( $nonce, 'bulk-' . $this->_args['plural'] ) ) {
343
  update_option( 'wpf_message', esc_html__( 'Failed To Delete Mapping. You do not have sufficient permission to delete.', 'woo-feed' ), false );
183
 
184
  /** Text displayed when no contact data is available */
185
  public function no_items() {
186
+ esc_html_e( 'No mapping available.', 'woo-feed' );
187
  }
188
 
189
 
307
  * @see $this->prepare_items()
308
  **************************************************************************/
309
  public function process_bulk_action() {
310
+ $nonce = isset( $_REQUEST['_wpnonce'] ) && ! empty( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( wp_unslash($_REQUEST['_wpnonce']) ) : '';
311
  // Detect when a bulk action is being triggered...
312
  if ( 'delete-mapping' === $this->current_action() ) {
313
  // In our file that handles the request, verify the nonce.
337
  }
338
 
339
  // If the delete bulk action is triggered
340
+ if ( ( isset( $_POST['mapping'] ) ) && ( isset( $_POST['action'] ) && 'bulk-delete' === $_POST['action'] ) || ( isset( $_POST['action2'] ) && 'bulk-delete' === $_POST['action2'] ) ) {
341
  if ( 'bulk-delete' === $this->current_action() ) {
342
  if ( ! wp_verify_nonce( $nonce, 'bulk-' . $this->_args['plural'] ) ) {
343
  update_option( 'wpf_message', esc_html__( 'Failed To Delete Mapping. You do not have sufficient permission to delete.', 'woo-feed' ), false );
woo-feed.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: WooCommerce Product 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
- * Version: 4.0.3
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
@@ -38,7 +38,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
38
  * @var string
39
  * @since 3.1.6
40
  */
41
- define( 'WOO_FEED_FREE_VERSION', '4.0.3' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {
10
  * Plugin Name: WooCommerce Product 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
+ * Version: 4.0.4
14
  * Author: WebAppick
15
  * Author URI: https://webappick.com/
16
  * License: GPL v2
38
  * @var string
39
  * @since 3.1.6
40
  */
41
+ define( 'WOO_FEED_FREE_VERSION', '4.0.4' );
42
  }
43
 
44
  if ( ! defined( 'WOO_FEED_FREE_FILE' ) ) {