Version Description
(31 Aug 2021) =
- Fixed: Debug log errors #1508
- Fixed: Last update(1.9.83) break other plugin shortcode functionality #1510
- Fixed: Variable Product Price does not take price with Vat #1467
- Fixed: Conflict with yoast faq in gutenberg block #1496
- Fixed: Conflict with YITH WooCommerce Customize My Account Page plugin #1507
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.83.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.83 to 1.9.83.1
- admin_section/structure_admin.php +35 -25
- core/array-list/local-sub-business.php +1 -1
- output/function.php +11 -7
- output/output.php +3 -6
- readme.txt +11 -1
- structured-data-for-wp.php +2 -2
admin_section/structure_admin.php
CHANGED
@@ -761,7 +761,7 @@ function saswp_comparison_logic_checker($input, $post){
|
|
761 |
break;
|
762 |
}
|
763 |
|
764 |
-
return $result;
|
765 |
}
|
766 |
|
767 |
|
@@ -1260,39 +1260,49 @@ function saswp_custom_breadcrumbs() {
|
|
1260 |
foreach ($category_values as $category_value) {
|
1261 |
|
1262 |
$category_name = get_category($category_value);
|
1263 |
-
|
1264 |
-
$
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
|
|
|
|
|
|
|
|
|
|
1268 |
}
|
1269 |
|
1270 |
}
|
1271 |
|
1272 |
// Get last category post is in
|
1273 |
$last_category = end(($category));
|
1274 |
-
|
1275 |
-
|
1276 |
-
$get_cat_parents = get_category_parents($last_category->term_id, true, ',');
|
1277 |
-
|
1278 |
-
if(is_string($get_cat_parents)){
|
1279 |
-
|
1280 |
-
$get_cat_parents = rtrim($get_cat_parents,',');
|
1281 |
-
$cat_parents = explode(',',$get_cat_parents);
|
1282 |
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
if( !empty($cat_parents) && is_array($cat_parents) ){
|
1287 |
|
1288 |
-
|
1289 |
-
|
1290 |
-
$cat_display .= '<li class="item-cat">'.saswp_t_string( $parents ).'</li>';
|
1291 |
-
$cat_display .= '<li class="separator"> ' . saswp_t_string( $separator ) . ' </li>';
|
1292 |
-
|
1293 |
-
}
|
1294 |
|
1295 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1296 |
|
1297 |
}
|
1298 |
|
761 |
break;
|
762 |
}
|
763 |
|
764 |
+
return apply_filters( 'saswp_filter_comparison_logic_checker', $result );
|
765 |
}
|
766 |
|
767 |
|
1260 |
foreach ($category_values as $category_value) {
|
1261 |
|
1262 |
$category_name = get_category($category_value);
|
1263 |
+
|
1264 |
+
if(is_object($category_name)){
|
1265 |
+
|
1266 |
+
$cat_name = $category_name->name;
|
1267 |
+
$variables1_titles[] = $cat_name;
|
1268 |
+
$variables2_links[] = get_category_link( $category_value );
|
1269 |
+
$breadcrumb_url = get_category_link( $category_value );
|
1270 |
+
|
1271 |
+
}
|
1272 |
+
|
1273 |
}
|
1274 |
|
1275 |
}
|
1276 |
|
1277 |
// Get last category post is in
|
1278 |
$last_category = end(($category));
|
1279 |
+
|
1280 |
+
if( is_object($last_category) ){
|
|
|
|
|
|
|
|
|
|
|
|
|
1281 |
|
1282 |
+
$category_name = get_category($last_category);
|
1283 |
+
// Get parent any categories and create array
|
1284 |
+
$get_cat_parents = get_category_parents($last_category->term_id, true, ',');
|
|
|
1285 |
|
1286 |
+
if(is_string($get_cat_parents)){
|
|
|
|
|
|
|
|
|
|
|
1287 |
|
1288 |
+
$get_cat_parents = rtrim($get_cat_parents,',');
|
1289 |
+
$cat_parents = explode(',',$get_cat_parents);
|
1290 |
+
|
1291 |
+
// Loop through parent categories and store in variable $cat_display
|
1292 |
+
$cat_display = '';
|
1293 |
+
|
1294 |
+
if( !empty($cat_parents) && is_array($cat_parents) ){
|
1295 |
+
|
1296 |
+
foreach($cat_parents as $parents) {
|
1297 |
+
|
1298 |
+
$cat_display .= '<li class="item-cat">'.saswp_t_string( $parents ).'</li>';
|
1299 |
+
$cat_display .= '<li class="separator"> ' . saswp_t_string( $separator ) . ' </li>';
|
1300 |
+
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
}
|
1304 |
+
|
1305 |
+
}
|
1306 |
|
1307 |
}
|
1308 |
|
core/array-list/local-sub-business.php
CHANGED
@@ -68,7 +68,7 @@ return array(
|
|
68 |
'' => 'Select Sub Business Type ( optional )',
|
69 |
'accountingservice' => 'Accounting Service',
|
70 |
'automatedteller' => 'Automated Teller',
|
71 |
-
'
|
72 |
'insuranceagency' => 'Insurance Agency',
|
73 |
|
74 |
),
|
68 |
'' => 'Select Sub Business Type ( optional )',
|
69 |
'accountingservice' => 'Accounting Service',
|
70 |
'automatedteller' => 'Automated Teller',
|
71 |
+
'BankOrCreditUnion' => 'Bank Or Credit Union',
|
72 |
'insuranceagency' => 'Insurance Agency',
|
73 |
|
74 |
),
|
output/function.php
CHANGED
@@ -113,9 +113,13 @@ function saswp_schema_markup_output_in_buffer($content){
|
|
113 |
if(!empty($saswp_json_ld['saswp_json_ld'])){
|
114 |
|
115 |
$regex = '/<script type\=\"application\/ld\+json\" class\=\"saswp\-schema\-markup\-output\"\>(.*?)<\/script>/s';
|
116 |
-
|
117 |
-
|
118 |
|
|
|
|
|
|
|
|
|
119 |
}
|
120 |
|
121 |
}
|
@@ -2616,16 +2620,16 @@ function saswp_get_mainEntity($schema_id){
|
|
2616 |
|
2617 |
$post_content = '';
|
2618 |
$response = array();
|
2619 |
-
|
2620 |
-
if(is_object($post)){
|
2621 |
-
$post_content = do_shortcode($post->post_content);
|
2622 |
-
}
|
2623 |
-
|
2624 |
$item_list_enable = get_post_meta($schema_id, 'saswp_enable_itemlist_schema', true);
|
2625 |
$item_list_tags = get_post_meta($schema_id, 'saswp_item_list_tags', true);
|
2626 |
$item_list_custom = get_post_meta($schema_id, 'saswp_item_list_custom', true);
|
2627 |
|
2628 |
if($item_list_enable){
|
|
|
|
|
|
|
|
|
2629 |
|
2630 |
$listitem = array();
|
2631 |
|
113 |
if(!empty($saswp_json_ld['saswp_json_ld'])){
|
114 |
|
115 |
$regex = '/<script type\=\"application\/ld\+json\" class\=\"saswp\-schema\-markup\-output\"\>(.*?)<\/script>/s';
|
116 |
+
|
117 |
+
preg_match($regex, $content, $match);
|
118 |
|
119 |
+
if(isset($match[0])){
|
120 |
+
$content = str_replace($match[0], $saswp_json_ld['saswp_json_ld'], $content);
|
121 |
+
}
|
122 |
+
|
123 |
}
|
124 |
|
125 |
}
|
2620 |
|
2621 |
$post_content = '';
|
2622 |
$response = array();
|
2623 |
+
|
|
|
|
|
|
|
|
|
2624 |
$item_list_enable = get_post_meta($schema_id, 'saswp_enable_itemlist_schema', true);
|
2625 |
$item_list_tags = get_post_meta($schema_id, 'saswp_item_list_tags', true);
|
2626 |
$item_list_custom = get_post_meta($schema_id, 'saswp_item_list_custom', true);
|
2627 |
|
2628 |
if($item_list_enable){
|
2629 |
+
|
2630 |
+
if(is_object($post)){
|
2631 |
+
$post_content = apply_filters('the_content', $post->post_content);
|
2632 |
+
}
|
2633 |
|
2634 |
$listitem = array();
|
2635 |
|
output/output.php
CHANGED
@@ -2225,9 +2225,7 @@ function saswp_schema_output() {
|
|
2225 |
$input2 = $service_object->saswp_get_fetaure_image();
|
2226 |
|
2227 |
if(!empty($input2)){
|
2228 |
-
|
2229 |
-
$input1['mainEntity'] = array_merge($input1['mainEntity'],$input2);
|
2230 |
-
|
2231 |
}
|
2232 |
}
|
2233 |
|
@@ -2239,13 +2237,12 @@ function saswp_schema_output() {
|
|
2239 |
|
2240 |
if(!empty($input2)){
|
2241 |
|
2242 |
-
$input1 = array_merge($input1,$input2);
|
2243 |
|
2244 |
}
|
2245 |
}
|
2246 |
}
|
2247 |
-
|
2248 |
-
|
2249 |
if(isset($schema_options['notAccessibleForFree']) && $schema_options['notAccessibleForFree'] == 1){
|
2250 |
|
2251 |
add_filter( 'amp_post_template_data', 'saswp_structure_data_access_scripts');
|
2225 |
$input2 = $service_object->saswp_get_fetaure_image();
|
2226 |
|
2227 |
if(!empty($input2)){
|
2228 |
+
$input1['mainEntity'] = apply_filters('saswp_modify_featured_image', array_merge($input1['mainEntity'],$input2));
|
|
|
|
|
2229 |
}
|
2230 |
}
|
2231 |
|
2237 |
|
2238 |
if(!empty($input2)){
|
2239 |
|
2240 |
+
$input1 = apply_filters('saswp_modify_featured_image', array_merge($input1,$input2) );
|
2241 |
|
2242 |
}
|
2243 |
}
|
2244 |
}
|
2245 |
+
|
|
|
2246 |
if(isset($schema_options['notAccessibleForFree']) && $schema_options['notAccessibleForFree'] == 1){
|
2247 |
|
2248 |
add_filter( 'amp_post_template_data', 'saswp_structure_data_access_scripts');
|
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.83
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -120,6 +120,16 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
= 1.9.83 (10 Aug 2021) =
|
124 |
|
125 |
* Fixed: when "Add Schema Markup in footer" checked breadcurm does not work properly #1477
|
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.83.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
|
124 |
+
= 1.9.83.1 (31 Aug 2021) =
|
125 |
+
|
126 |
+
* Fixed: Debug log errors #1508
|
127 |
+
* Fixed: Last update(1.9.83) break other plugin shortcode functionality #1510
|
128 |
+
* Fixed: Variable Product Price does not take price with Vat #1467
|
129 |
+
* Fixed: Conflict with yoast faq in gutenberg block #1496
|
130 |
+
* Fixed: Conflict with “YITH WooCommerce Customize My Account Page” plugin #1507
|
131 |
+
|
132 |
+
|
133 |
= 1.9.83 (10 Aug 2021) =
|
134 |
|
135 |
* Fixed: when "Add Schema Markup in footer" checked breadcurm does not work properly #1477
|
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.83
|
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.83');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|
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.83.1
|
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.83.1');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|