Version Description
(28 July 2021) =
- Added: Feefo reviews ( https://www.feefo.com ) platform
- Fixed: Error on product category pages #1492
- Fixed: Uncaught Error: Call to undefined function saswp_post_exists() #1485
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.82.2 |
Comparing to | |
See all releases |
Code changes from version 1.9.82.1 to 1.9.82.2
admin_section/fields-generator.php
CHANGED
@@ -294,7 +294,10 @@ class saswp_fields_generator {
|
|
294 |
"name" => "Upwork"),
|
295 |
array(
|
296 |
"image" => "/admin_section/images/reviews_platform_icon/freelancer-img.png",
|
297 |
-
"name" => "freelancer.com")
|
|
|
|
|
|
|
298 |
|
299 |
);
|
300 |
|
294 |
"name" => "Upwork"),
|
295 |
array(
|
296 |
"image" => "/admin_section/images/reviews_platform_icon/freelancer-img.png",
|
297 |
+
"name" => "freelancer.com"),
|
298 |
+
array(
|
299 |
+
"image" => "/admin_section/images/reviews_platform_icon/feefo-img.png",
|
300 |
+
"name" => "feefo.com")
|
301 |
|
302 |
);
|
303 |
|
admin_section/images/reviews_platform_icon/feefo-img.png
ADDED
Binary file
|
modules/reviews/reviews_setup.php
CHANGED
@@ -357,7 +357,7 @@ function saswp_insert_platform_terms(){
|
|
357 |
|
358 |
$platform_inserted = get_transient('saswp_platform_inserted');
|
359 |
|
360 |
-
if( $platform_inserted !=
|
361 |
|
362 |
$term_array = array(
|
363 |
'Self',
|
@@ -365,7 +365,8 @@ function saswp_insert_platform_terms(){
|
|
365 |
'Avvo',
|
366 |
'Angies List',
|
367 |
'Apple AppStore',
|
368 |
-
'Expedia',
|
|
|
369 |
'Facebook',
|
370 |
'Google',
|
371 |
'Google Shopping',
|
@@ -482,8 +483,8 @@ function saswp_insert_platform_terms(){
|
|
482 |
|
483 |
}
|
484 |
|
485 |
-
if(count($term_ids) ==
|
486 |
-
set_transient('saswp_platform_inserted',
|
487 |
}
|
488 |
|
489 |
}
|
357 |
|
358 |
$platform_inserted = get_transient('saswp_platform_inserted');
|
359 |
|
360 |
+
if( $platform_inserted != 99 ){
|
361 |
|
362 |
$term_array = array(
|
363 |
'Self',
|
365 |
'Avvo',
|
366 |
'Angies List',
|
367 |
'Apple AppStore',
|
368 |
+
'Expedia',
|
369 |
+
'Feefo',
|
370 |
'Facebook',
|
371 |
'Google',
|
372 |
'Google Shopping',
|
483 |
|
484 |
}
|
485 |
|
486 |
+
if( count($term_ids) == 99 ){
|
487 |
+
set_transient( 'saswp_platform_inserted', 99, 24*7*HOUR_IN_SECONDS );
|
488 |
}
|
489 |
|
490 |
}
|
output/service.php
CHANGED
@@ -4881,8 +4881,8 @@ Class saswp_output_service{
|
|
4881 |
case 'Book':
|
4882 |
case 'Car':
|
4883 |
case 'Vehicle':
|
4884 |
-
|
4885 |
-
$product_details = $this->saswp_woocommerce_product_details(
|
4886 |
|
4887 |
if((isset($sd_data['saswp-woocommerce']) && $sd_data['saswp-woocommerce'] == 1) && !empty($product_details)){
|
4888 |
|
4881 |
case 'Book':
|
4882 |
case 'Car':
|
4883 |
case 'Vehicle':
|
4884 |
+
|
4885 |
+
$product_details = $this->saswp_woocommerce_product_details(get_the_ID());
|
4886 |
|
4887 |
if((isset($sd_data['saswp-woocommerce']) && $sd_data['saswp-woocommerce'] == 1) && !empty($product_details)){
|
4888 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: magazine3
|
|
3 |
Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 1.9.82.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -120,6 +120,13 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
= 1.9.82.1 (16 July 2021) =
|
124 |
|
125 |
* Fixed: Call to undefined function ampforwp_saswp_get_the_ID() #1483
|
3 |
Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 1.9.82.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 1.9.82.2 (28 July 2021) =
|
124 |
+
|
125 |
+
* Added: Feefo reviews ( https://www.feefo.com ) platform
|
126 |
+
* Fixed: Error on product category pages #1492
|
127 |
+
* Fixed: Uncaught Error: Call to undefined function saswp_post_exists() #1485
|
128 |
+
|
129 |
+
|
130 |
= 1.9.82.1 (16 July 2021) =
|
131 |
|
132 |
* Fixed: Call to undefined function ampforwp_saswp_get_the_ID() #1483
|
structured-data-for-wp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Schema & Structured Data for WP & AMP
|
4 |
Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
|
5 |
-
Version: 1.9.82.
|
6 |
Text Domain: schema-and-structured-data-for-wp
|
7 |
Domain Path: /languages
|
8 |
Author: Magazine3
|
@@ -13,7 +13,7 @@ License: GPL2
|
|
13 |
// Exit if accessed directly.
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
-
define('SASWP_VERSION', '1.9.82.
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
@@ -30,6 +30,7 @@ define('SASWP_EDD_STORE_URL', 'http://structured-data-for-wp.com/');
|
|
30 |
//define('SASWP_ENVIRONMENT', 'development');
|
31 |
define('SASWP_ENVIRONMENT', 'production');
|
32 |
// including the output file
|
|
|
33 |
require_once SASWP_DIR_NAME .'/output/function.php';
|
34 |
require_once SASWP_DIR_NAME .'/output/output.php';
|
35 |
require_once SASWP_DIR_NAME .'/output/markup.php';
|
@@ -106,7 +107,6 @@ require_once SASWP_DIR_NAME.'/modules/reviews/reviews_collection.php';
|
|
106 |
require_once SASWP_DIR_NAME.'/modules/reviews/reviews_form.php';
|
107 |
require_once SASWP_DIR_NAME.'/core/array-list/schema-properties.php';
|
108 |
require_once SASWP_DIR_NAME.'/core/global.php';
|
109 |
-
require_once SASWP_DIR_NAME.'/core/queries_function.php';
|
110 |
//Module files load
|
111 |
require_once SASWP_DIR_NAME.'/modules/gutenberg/includes/class-gutenberg.php';
|
112 |
require_once SASWP_DIR_NAME.'/modules/elementor/elementor-loader.php';
|
2 |
/*
|
3 |
Plugin Name: Schema & Structured Data for WP & AMP
|
4 |
Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
|
5 |
+
Version: 1.9.82.2
|
6 |
Text Domain: schema-and-structured-data-for-wp
|
7 |
Domain Path: /languages
|
8 |
Author: Magazine3
|
13 |
// Exit if accessed directly.
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
+
define('SASWP_VERSION', '1.9.82.2');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
30 |
//define('SASWP_ENVIRONMENT', 'development');
|
31 |
define('SASWP_ENVIRONMENT', 'production');
|
32 |
// including the output file
|
33 |
+
require_once SASWP_DIR_NAME .'/core/queries_function.php';
|
34 |
require_once SASWP_DIR_NAME .'/output/function.php';
|
35 |
require_once SASWP_DIR_NAME .'/output/output.php';
|
36 |
require_once SASWP_DIR_NAME .'/output/markup.php';
|
107 |
require_once SASWP_DIR_NAME.'/modules/reviews/reviews_form.php';
|
108 |
require_once SASWP_DIR_NAME.'/core/array-list/schema-properties.php';
|
109 |
require_once SASWP_DIR_NAME.'/core/global.php';
|
|
|
110 |
//Module files load
|
111 |
require_once SASWP_DIR_NAME.'/modules/gutenberg/includes/class-gutenberg.php';
|
112 |
require_once SASWP_DIR_NAME.'/modules/elementor/elementor-loader.php';
|