CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.2.15

Version Description

(2020-01-23) = * Fix undefined index in cron callback

Download this release

Release Info

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

Code changes from version 3.2.14 to 3.2.15

Files changed (2) hide show
  1. README.txt +4 -1
  2. woo-feed.php +17 -20
README.txt CHANGED
@@ -5,7 +5,7 @@ Tags:woocommerce,google product feed,facebook product feed,woocommerce product f
5
  Requires at least: 3.6
6
  Tested Up To: 5.4-alpha-46743
7
  Requires PHP: 5.6
8
- Stable tag: 3.2.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -305,6 +305,9 @@ Using pro version:
305
 
306
  == Changelog ==
307
 
 
 
 
308
  = 3.2.14 (2020-01-21) =
309
  * Dynamic Selectize for Google Taxonomy Dropdown
310
  * Fix Selectize UI
5
  Requires at least: 3.6
6
  Tested Up To: 5.4-alpha-46743
7
  Requires PHP: 5.6
8
+ Stable tag: 3.2.15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
305
 
306
  == Changelog ==
307
 
308
+ = 3.2.15 (2020-01-23) =
309
+ * Fix undefined index in cron callback
310
+
311
  = 3.2.14 (2020-01-21) =
312
  * Dynamic Selectize for Google Taxonomy Dropdown
313
  * Fix Selectize UI
woo-feed.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: WooCommerce Product Feed
16
  * Plugin URI: https://webappick.com/
17
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
18
- * Version: 3.2.14
19
  * Author: WebAppick
20
  * Author URI: https://webappick.com/
21
  * License: GPL v2
@@ -41,7 +41,7 @@ if ( ! defined( 'WOO_FEED_FREE_VERSION' ) ) {
41
  * Plugin Version
42
  * @var string
43
  */
44
- define( 'WOO_FEED_FREE_VERSION', '3.2.14' );
45
  }
46
  if ( ! defined( 'WOO_FEED_FREE_FILE') ) {
47
  /**
@@ -509,18 +509,17 @@ if ( ! function_exists( 'woo_feed_generate_feed_data' ) ) {
509
 
510
  // Cron Action
511
  if ( ! function_exists( 'woo_feed_cron_update_feed' ) ) {
512
- /*
513
- * Scheduled Action Hook
514
- */
515
  function woo_feed_cron_update_feed() {
516
  global $wpdb;
517
- $query = $wpdb->prepare("SELECT * FROM $wpdb->options WHERE option_name LIKE %s;", "wf_feed_%");
518
- $result = $wpdb->get_results($query, 'ARRAY_A');
519
- foreach ($result as $key => $value) {
520
- $feedInfo = unserialize(get_option($value['option_name']));
521
- if(!isset($feedInfo['status']) || $feedInfo['status'] != "0") {
522
- woo_feed_add_update( $feedInfo['feedrules'] );
523
- }
524
  }
525
  }
526
  add_action('woo_feed_update', 'woo_feed_cron_update_feed');
@@ -529,20 +528,18 @@ if ( ! function_exists( 'woo_feed_cron_update_feed' ) ) {
529
  if ( ! function_exists( 'woo_feed_cron_update_single_feed' ) ) {
530
  /**
531
  * Scheduled Action Hook
532
- * @param array $feedname
533
  * @return void
534
  */
535
- function woo_feed_cron_update_single_feed( $feedname ) {
536
  global $wpdb;
537
- $feedname = "wf_feed_".$feedname[0];
538
- $result = $wpdb->get_results(
539
- $wpdb->prepare( "SELECT * FROM $wpdb->options WHERE option_name = %s", $feedname ),'ARRAY_A');
540
  if( ! empty( $result ) ) {
541
  foreach ( $result as $key => $value ) {
542
  $feedInfo = maybe_unserialize( get_option( $value['option_name'] ) );
543
- if( ! isset( $feedInfo['status'] ) || $feedInfo['status'] != "0" ) {
544
- woo_feed_add_update( $feedInfo['feedrules'] );
545
- }
546
  }
547
  }
548
  }
15
  * Plugin Name: WooCommerce Product Feed
16
  * Plugin URI: https://webappick.com/
17
  * Description: This plugin generate WooCommerce product feed for Shopping Engines like Google Shopping,Facebook Product Feed,eBay,Amazon,Idealo and many more..
18
+ * Version: 3.2.15
19
  * Author: WebAppick
20
  * Author URI: https://webappick.com/
21
  * License: GPL v2
41
  * Plugin Version
42
  * @var string
43
  */
44
+ define( 'WOO_FEED_FREE_VERSION', '3.2.15' );
45
  }
46
  if ( ! defined( 'WOO_FEED_FREE_FILE') ) {
47
  /**
509
 
510
  // Cron Action
511
  if ( ! function_exists( 'woo_feed_cron_update_feed' ) ) {
512
+ /**
513
+ * Scheduled Action Hook
514
+ */
515
  function woo_feed_cron_update_feed() {
516
  global $wpdb;
517
+ $query = $wpdb->prepare( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s;", "wf_feed_%" );
518
+ $result = $wpdb->get_results( $query, 'ARRAY_A' );
519
+ foreach ( $result as $key => $value ) {
520
+ $feedInfo = maybe_unserialize( get_option( $value['option_name'] ) );
521
+ if( ! isset( $feedInfo['feedrules'] ) || isset( $feedInfo['status'] ) && $feedInfo['status'] == "0" ) continue;
522
+ woo_feed_add_update( $feedInfo['feedrules'] );
 
523
  }
524
  }
525
  add_action('woo_feed_update', 'woo_feed_cron_update_feed');
528
  if ( ! function_exists( 'woo_feed_cron_update_single_feed' ) ) {
529
  /**
530
  * Scheduled Action Hook
531
+ * @param array $feedName
532
  * @return void
533
  */
534
+ function woo_feed_cron_update_single_feed( $feedName ) {
535
  global $wpdb;
536
+ $feedName = "wf_feed_".$feedName[0];
537
+ $result = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->options WHERE option_name = %s", $feedName ),'ARRAY_A');
 
538
  if( ! empty( $result ) ) {
539
  foreach ( $result as $key => $value ) {
540
  $feedInfo = maybe_unserialize( get_option( $value['option_name'] ) );
541
+ if( ! isset( $feedInfo['feedrules'] ) || isset( $feedInfo['status'] ) && $feedInfo['status'] == "0" ) continue;
542
+ woo_feed_add_update( $feedInfo['feedrules'] );
 
543
  }
544
  }
545
  }