CTX Feed – WooCommerce Product Feed Manager Plugin - Version 3.2.3

Version Description

(2019-12-17) = * Fix All-In-One-SEO Title and Description

Download this release

Release Info

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

Code changes from version 3.2.2 to 3.2.3

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.2
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.2 (2019-12-15) =
309
  * Product query type settings added for compatibility.
310
  * Request sanitization.
5
  Requires at least: 3.6
6
  Tested Up To: 5.4-alpha-46743
7
  Requires PHP: 5.6
8
+ Stable tag: 3.2.3
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.3 (2019-12-17) =
309
+ * Fix All-In-One-SEO Title and Description
310
+
311
  = 3.2.2 (2019-12-15) =
312
  * Product query type settings added for compatibility.
313
  * Request sanitization.
includes/classes/class-woo-feed-products-v3.php CHANGED
@@ -922,8 +922,7 @@ class Woo_Feed_Products_v3 {
922
  *
923
  * @return mixed
924
  */
925
- private function yoast_wpseo_title($product)
926
- {
927
  $title = "";
928
  if (class_exists('WPSEO_Frontend')) {
929
  $title = WPSEO_Frontend::get_instance()->get_seo_title(get_post($product->get_id()));
@@ -934,7 +933,7 @@ class Woo_Feed_Products_v3 {
934
 
935
  return $this->title($product);
936
  }
937
-
938
  /**
939
  * Get All In One Product Title
940
  * @since 3.2.0
@@ -943,30 +942,30 @@ class Woo_Feed_Products_v3 {
943
  *
944
  * @return mixed
945
  */
946
- private function aioseop_title($product)
947
- {
948
  $title = '';
949
- if (class_exists('All_in_One_SEO_Pack')) {
950
  global $aioseop_options, $aiosp;
951
  $selfLoadAIOSP = false;
952
- if (!($aiosp instanceof All_in_One_SEO_Pack)) {
953
- $aiosp = new All_in_One_SEO_Pack();
 
954
  $selfLoadAIOSP = true;
955
  }
956
-
957
- if (in_array('product', $aioseop_options['aiosp_cpostactive'], true)) {
958
- if (!empty($aioseop_options['aiosp_rewrite_titles'])) {
959
- $title = $aiosp->get_aioseop_title(get_post($product->get_id()));
960
- $title = $aiosp->apply_cf_fields($title);
961
  }
962
- $title = apply_filters('aioseop_title', $title);
963
  }
964
  }
965
- if (!empty($title)) {
966
  return $title;
967
  }
968
-
969
- return $this->title($product);
970
  }
971
 
972
  /**
@@ -977,8 +976,7 @@ class Woo_Feed_Products_v3 {
977
  *
978
  * @return mixed|string
979
  */
980
- private function description($product)
981
- {
982
 
983
  $description = $product->get_description();
984
 
@@ -1011,8 +1009,7 @@ class Woo_Feed_Products_v3 {
1011
  *
1012
  * @return mixed
1013
  */
1014
- private function yoast_wpseo_metadesc($product)
1015
- {
1016
  $description = "";
1017
  if (class_exists('WPSEO_Frontend')) {
1018
  $description = wpseo_replace_vars(WPSEO_Meta::get_value('metadesc', $product->get_id()), get_post($product->get_id()));
@@ -1023,7 +1020,7 @@ class Woo_Feed_Products_v3 {
1023
 
1024
  return $this->description($product);
1025
  }
1026
-
1027
  /**
1028
  * Get All In One Product Description
1029
  * @since 3.2.0
@@ -1032,27 +1029,27 @@ class Woo_Feed_Products_v3 {
1032
  *
1033
  * @return mixed
1034
  */
1035
- private function aioseop_description($product)
1036
- {
1037
  $description = "";
1038
- if (class_exists('All_in_One_SEO_Pack')) {
1039
  global $aioseop_options, $aiosp;
1040
  $selfLoadAIOSP = false;
1041
- if (!($aiosp instanceof All_in_One_SEO_Pack)) {
1042
- $aiosp = new All_in_One_SEO_Pack();
 
1043
  $selfLoadAIOSP = true;
1044
  }
1045
- if (in_array('product', $aioseop_options['aiosp_cpostactive'], true)) {
1046
- $description = $aiosp->get_main_description(get_post($product->get_id())); // Get the description.
1047
- $description = $aiosp->trim_description($description);
1048
- $description = apply_filters('aioseop_description_full', $aiosp->apply_description_format($description, get_post($product->get_id())));
1049
  }
1050
  }
1051
- if (!empty($description)) {
1052
  return $description;
1053
  }
1054
-
1055
- return $this->description($product);
1056
  }
1057
 
1058
  /**
922
  *
923
  * @return mixed
924
  */
925
+ private function yoast_wpseo_title($product) {
 
926
  $title = "";
927
  if (class_exists('WPSEO_Frontend')) {
928
  $title = WPSEO_Frontend::get_instance()->get_seo_title(get_post($product->get_id()));
933
 
934
  return $this->title($product);
935
  }
936
+
937
  /**
938
  * Get All In One Product Title
939
  * @since 3.2.0
942
  *
943
  * @return mixed
944
  */
945
+ private function _aioseop_title( $product ) {
 
946
  $title = '';
947
+ if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
948
  global $aioseop_options, $aiosp;
949
  $selfLoadAIOSP = false;
950
+ if( ! is_array( $aioseop_options ) ) $aioseop_options = get_option( 'aioseop_options' );
951
+ if ( ! ( $aiosp instanceof All_in_One_SEO_Pack ) ) {
952
+ $aiosp = new All_in_One_SEO_Pack();
953
  $selfLoadAIOSP = true;
954
  }
955
+
956
+ if ( in_array( 'product', $aioseop_options['aiosp_cpostactive'], true ) ) {
957
+ if ( ! empty( $aioseop_options['aiosp_rewrite_titles'] ) ) {
958
+ $title = $aiosp->get_aioseop_title( get_post( $product->get_id() ) );
959
+ $title = $aiosp->apply_cf_fields( $title );
960
  }
961
+ $title = apply_filters( 'aioseop_title', $title );
962
  }
963
  }
964
+ if ( ! empty( $title ) ) {
965
  return $title;
966
  }
967
+
968
+ return $this->title( $product );
969
  }
970
 
971
  /**
976
  *
977
  * @return mixed|string
978
  */
979
+ private function description($product) {
 
980
 
981
  $description = $product->get_description();
982
 
1009
  *
1010
  * @return mixed
1011
  */
1012
+ private function yoast_wpseo_metadesc($product) {
 
1013
  $description = "";
1014
  if (class_exists('WPSEO_Frontend')) {
1015
  $description = wpseo_replace_vars(WPSEO_Meta::get_value('metadesc', $product->get_id()), get_post($product->get_id()));
1020
 
1021
  return $this->description($product);
1022
  }
1023
+
1024
  /**
1025
  * Get All In One Product Description
1026
  * @since 3.2.0
1029
  *
1030
  * @return mixed
1031
  */
1032
+ private function _aioseop_description( $product ) {
 
1033
  $description = "";
1034
+ if ( class_exists( 'All_in_One_SEO_Pack' ) ) {
1035
  global $aioseop_options, $aiosp;
1036
  $selfLoadAIOSP = false;
1037
+ if( ! is_array( $aioseop_options ) ) $aioseop_options = get_option( 'aioseop_options' );
1038
+ if ( ! ( $aiosp instanceof All_in_One_SEO_Pack ) ) {
1039
+ $aiosp = new All_in_One_SEO_Pack();
1040
  $selfLoadAIOSP = true;
1041
  }
1042
+ if ( in_array( 'product', $aioseop_options['aiosp_cpostactive'], true ) ) {
1043
+ $description = $aiosp->get_main_description( get_post( $product->get_id() ) ); // Get the description.
1044
+ $description = $aiosp->trim_description( $description );
1045
+ $description = apply_filters( 'aioseop_description_full', $aiosp->apply_description_format( $description, get_post( $product->get_id() ) ) );
1046
  }
1047
  }
1048
+ if ( ! empty( $description ) ) {
1049
  return $description;
1050
  }
1051
+
1052
+ return $this->description( $product );
1053
  }
1054
 
1055
  /**
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.2
19
  * Author: WebAppick
20
  * Author URI: https://webappick.com/
21
  * License: GPL v2
@@ -41,7 +41,7 @@ if( ! defined( 'WOO_FEED_VERSION' ) ) {
41
  * Plugin Version
42
  * @var string
43
  */
44
- define( 'WOO_FEED_VERSION', '3.2.2' );
45
  }
46
  if( ! defined( 'WOO_FEED_FREE_FILE') ) {
47
  /**
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.3
19
  * Author: WebAppick
20
  * Author URI: https://webappick.com/
21
  * License: GPL v2
41
  * Plugin Version
42
  * @var string
43
  */
44
+ define( 'WOO_FEED_VERSION', '3.2.3' );
45
  }
46
  if( ! defined( 'WOO_FEED_FREE_FILE') ) {
47
  /**