Version Description
(05 Dec 2020) =
- Fixed: The price field not getting the taxable value for the product schema #1259
- Fixed: inLanguage property is absent from NewsArticle and Article schema types? #1260
- Fixed: Review schem mark up is not being fetched form the review collectioin badge type #1261
- Fixed: If the "WPMU DEV SEO" plugin is active then showing the JS error in the console #1262
- Added: Rating column in comments list when Stars Rating is enabled in the default comment form #1049
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.57 |
Comparing to | |
See all releases |
Code changes from version 1.9.56 to 1.9.57
- admin_section/settings.php +3 -0
- core/array-list/schema-properties.php +24 -0
- modules/reviews/comments.php +1 -1
- modules/reviews/reviews_collection.php +18 -2
- output/markup.php +30 -30
- output/service.php +20 -2
- readme.txt +10 -1
- structured-data-for-wp.php +2 -2
admin_section/settings.php
CHANGED
@@ -3892,6 +3892,9 @@ function saswp_enqueue_saswp_select2_js( $hook ) {
|
|
3892 |
wp_dequeue_script( 'select2' );
|
3893 |
wp_deregister_script( 'select2' );
|
3894 |
|
|
|
|
|
|
|
3895 |
wp_enqueue_style('saswp-select2-style', SASWP_PLUGIN_URL. 'admin_section/css/select2.min.css' , false, SASWP_VERSION);
|
3896 |
wp_enqueue_script('select2', SASWP_PLUGIN_URL. 'admin_section/js/select2.min.js', array( 'jquery'), SASWP_VERSION, true);
|
3897 |
wp_enqueue_script('select2-extended-script', SASWP_PLUGIN_URL. 'admin_section/js/select2-extended.min.js', array( 'jquery' ), SASWP_VERSION, true);
|
3892 |
wp_dequeue_script( 'select2' );
|
3893 |
wp_deregister_script( 'select2' );
|
3894 |
|
3895 |
+
wp_dequeue_script( 'wds-shared-ui' );
|
3896 |
+
wp_deregister_script( 'wds-shared-ui' );
|
3897 |
+
|
3898 |
wp_enqueue_style('saswp-select2-style', SASWP_PLUGIN_URL. 'admin_section/css/select2.min.css' , false, SASWP_VERSION);
|
3899 |
wp_enqueue_script('select2', SASWP_PLUGIN_URL. 'admin_section/js/select2.min.js', array( 'jquery'), SASWP_VERSION, true);
|
3900 |
wp_enqueue_script('select2-extended-script', SASWP_PLUGIN_URL. 'admin_section/js/select2-extended.min.js', array( 'jquery' ), SASWP_VERSION, true);
|
core/array-list/schema-properties.php
CHANGED
@@ -318,6 +318,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
318 |
'type' => 'text',
|
319 |
'default' => get_permalink()
|
320 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
array(
|
322 |
'label' => 'Headline',
|
323 |
'id' => 'saswp_blogposting_headline_'.$schema_id,
|
@@ -444,6 +450,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
444 |
'id' => 'saswp_newsarticle_image_'.$schema_id,
|
445 |
'type' => 'media',
|
446 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
array(
|
448 |
'label' => 'Headline',
|
449 |
'id' => 'saswp_newsarticle_headline_'.$schema_id,
|
@@ -716,6 +728,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
716 |
'id' => 'saswp_article_image_'.$schema_id,
|
717 |
'type' => 'media'
|
718 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
array(
|
720 |
'label' => 'Headline',
|
721 |
'id' => 'saswp_article_headline_'.$schema_id,
|
@@ -1215,6 +1233,12 @@ function saswp_get_fields_by_schema_type( $schema_id = null, $condition = null,
|
|
1215 |
'id' => 'saswp_tech_article_image_'.$schema_id,
|
1216 |
'type' => 'media',
|
1217 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
1218 |
array(
|
1219 |
'label' => 'Headline',
|
1220 |
'id' => 'saswp_tech_article_headline_'.$schema_id,
|
318 |
'type' => 'text',
|
319 |
'default' => get_permalink()
|
320 |
),
|
321 |
+
array(
|
322 |
+
'label' => 'inLanguage',
|
323 |
+
'id' => 'saswp_blogposting_inlanguage_'.$schema_id,
|
324 |
+
'type' => 'text',
|
325 |
+
'default' => get_bloginfo('language'),
|
326 |
+
),
|
327 |
array(
|
328 |
'label' => 'Headline',
|
329 |
'id' => 'saswp_blogposting_headline_'.$schema_id,
|
450 |
'id' => 'saswp_newsarticle_image_'.$schema_id,
|
451 |
'type' => 'media',
|
452 |
),
|
453 |
+
array(
|
454 |
+
'label' => 'inLanguage',
|
455 |
+
'id' => 'saswp_newsarticle_inlanguage_'.$schema_id,
|
456 |
+
'type' => 'text',
|
457 |
+
'default' => get_bloginfo('language'),
|
458 |
+
),
|
459 |
array(
|
460 |
'label' => 'Headline',
|
461 |
'id' => 'saswp_newsarticle_headline_'.$schema_id,
|
728 |
'id' => 'saswp_article_image_'.$schema_id,
|
729 |
'type' => 'media'
|
730 |
),
|
731 |
+
array(
|
732 |
+
'label' => 'inLanguage',
|
733 |
+
'id' => 'saswp_article_inlanguage_'.$schema_id,
|
734 |
+
'type' => 'text',
|
735 |
+
'default' => get_bloginfo('language'),
|
736 |
+
),
|
737 |
array(
|
738 |
'label' => 'Headline',
|
739 |
'id' => 'saswp_article_headline_'.$schema_id,
|
1233 |
'id' => 'saswp_tech_article_image_'.$schema_id,
|
1234 |
'type' => 'media',
|
1235 |
),
|
1236 |
+
array(
|
1237 |
+
'label' => 'inLanguage',
|
1238 |
+
'id' => 'saswp_tech_article_inlanguage_'.$schema_id,
|
1239 |
+
'type' => 'text',
|
1240 |
+
'default' => get_bloginfo('language'),
|
1241 |
+
),
|
1242 |
array(
|
1243 |
'label' => 'Headline',
|
1244 |
'id' => 'saswp_tech_article_headline_'.$schema_id,
|
modules/reviews/comments.php
CHANGED
@@ -149,7 +149,7 @@ function saswp_comment_rating_display_rating( $comment_text ){
|
|
149 |
$rating = get_comment_meta( get_comment_ID(), 'review_rating', true );
|
150 |
}
|
151 |
|
152 |
-
|
153 |
return '<p>'.saswp_get_rating_html_by_value($rating).'</p><p>'.esc_html($comment_text).'</p>';
|
154 |
} else {
|
155 |
return '<p>'.$comment_text.'</p>';
|
149 |
$rating = get_comment_meta( get_comment_ID(), 'review_rating', true );
|
150 |
}
|
151 |
|
152 |
+
wp_enqueue_style( 'saswp-style', SASWP_PLUGIN_URL . 'admin_section/css/'.(SASWP_ENVIRONMENT == 'production' ? 'saswp-style.min.css' : 'saswp-style.css'), false , SASWP_VERSION );
|
153 |
return '<p>'.saswp_get_rating_html_by_value($rating).'</p><p>'.esc_html($comment_text).'</p>';
|
154 |
} else {
|
155 |
return '<p>'.$comment_text.'</p>';
|
modules/reviews/reviews_collection.php
CHANGED
@@ -445,8 +445,24 @@ class SASWP_Reviews_Collection {
|
|
445 |
}
|
446 |
|
447 |
$collection = $this->_service->saswp_get_reviews_list_by_design($design, $platform_id, $total_reviews, $sorting);
|
448 |
-
|
449 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
switch($design) {
|
451 |
|
452 |
case "grid":
|
445 |
}
|
446 |
|
447 |
$collection = $this->_service->saswp_get_reviews_list_by_design($design, $platform_id, $total_reviews, $sorting);
|
448 |
+
|
449 |
+
if($design == 'badge'){
|
450 |
+
|
451 |
+
$new_coll = array();
|
452 |
+
|
453 |
+
if($collection){
|
454 |
+
foreach($collection as $coll){
|
455 |
+
foreach($coll as $new){
|
456 |
+
$new_coll[] = $new;
|
457 |
+
}
|
458 |
+
}
|
459 |
+
}
|
460 |
+
|
461 |
+
$saswp_post_reviews = array_merge($saswp_post_reviews, $new_coll);
|
462 |
+
}else{
|
463 |
+
$saswp_post_reviews = array_merge($saswp_post_reviews, $collection);
|
464 |
+
}
|
465 |
+
|
466 |
switch($design) {
|
467 |
|
468 |
case "grid":
|
output/markup.php
CHANGED
@@ -2902,9 +2902,9 @@ function saswp_blogposting_schema_markup($schema_id, $schema_post_id, $all_post_
|
|
2902 |
'@context' => saswp_context_url(),
|
2903 |
'@type' => 'BlogPosting' ,
|
2904 |
'@id' => trailingslashit(get_permalink()).'#BlogPosting',
|
2905 |
-
'inLanguage' =>
|
2906 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
2907 |
-
'headline'
|
2908 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_description_'.$schema_id, 'saswp_array'),
|
2909 |
'articleBody' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_body_'.$schema_id, 'saswp_array'),
|
2910 |
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_keywords_'.$schema_id, 'saswp_array'),
|
@@ -3242,18 +3242,18 @@ function saswp_article_schema_markup($schema_id, $schema_post_id, $all_post_meta
|
|
3242 |
$slogo = get_post_meta( get_the_ID(), 'saswp_article_organization_logo_'.$schema_id.'_detail',true);
|
3243 |
|
3244 |
$input1 = array(
|
3245 |
-
'@context'
|
3246 |
-
'@type'
|
3247 |
'@id' => trailingslashit(get_permalink()).'#article',
|
3248 |
-
'url'
|
3249 |
-
'inLanguage' =>
|
3250 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3251 |
-
'image'
|
3252 |
-
'headline'
|
3253 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_description_'.$schema_id, 'saswp_array'),
|
3254 |
'articleSection' => saswp_remove_warnings($all_post_meta, 'saswp_article_section_'.$schema_id, 'saswp_array'),
|
3255 |
'articleBody' => isset($all_post_meta['saswp_article_body_'.$schema_id][0]) ? wp_strip_all_tags(strip_shortcodes($all_post_meta['saswp_article_body_'.$schema_id][0])) : '',
|
3256 |
-
'keywords'
|
3257 |
'datePublished' => isset($all_post_meta['saswp_article_date_published_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_article_date_published_'.$schema_id][0], get_post_time('h:i:s')):'',
|
3258 |
'dateModified' => isset($all_post_meta['saswp_article_date_modified_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_article_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')):'',
|
3259 |
|
@@ -3318,15 +3318,15 @@ function saswp_tech_article_schema_markup($schema_id, $schema_post_id, $all_post
|
|
3318 |
$slogo = get_post_meta( get_the_ID(), 'saswp_tech_article_organization_logo_'.$schema_id.'_detail',true);
|
3319 |
|
3320 |
$input1 = array(
|
3321 |
-
'@context'
|
3322 |
-
'@type'
|
3323 |
'@id' => trailingslashit(get_permalink()).'#techarticle',
|
3324 |
-
'inLanguage' =>
|
3325 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3326 |
-
'image'
|
3327 |
-
'headline'
|
3328 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_description_'.$schema_id, 'saswp_array'),
|
3329 |
-
'keywords'
|
3330 |
'datePublished' => isset($all_post_meta['saswp_tech_article_date_published_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_tech_article_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
|
3331 |
'dateModified' => isset($all_post_meta['saswp_tech_article_date_modified_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_tech_article_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) :'',
|
3332 |
'publisher' => array(
|
@@ -3390,27 +3390,27 @@ function saswp_news_article_schema_markup($schema_id, $schema_post_id, $all_post
|
|
3390 |
$author_image = get_post_meta( get_the_ID(), 'saswp_newsarticle_author_image_'.$schema_id.'_detail',true);
|
3391 |
|
3392 |
$input1 = array(
|
3393 |
-
'@context'
|
3394 |
-
'@type'
|
3395 |
-
|
3396 |
-
|
3397 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3398 |
-
'url'
|
3399 |
-
|
3400 |
-
'headline'
|
3401 |
'datePublished' => isset($all_post_meta['saswp_newsarticle_date_published_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_newsarticle_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
|
3402 |
'dateModified' => isset($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) :'',
|
3403 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_description_'.$schema_id, 'saswp_array'),
|
3404 |
-
|
3405 |
-
|
3406 |
-
|
3407 |
-
'name'
|
3408 |
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_thumbnailurl_'.$schema_id, 'saswp_array'),
|
3409 |
-
|
3410 |
-
|
3411 |
'mainEntity' => array(
|
3412 |
-
|
3413 |
-
|
3414 |
),
|
3415 |
'publisher' => array(
|
3416 |
'@type' => 'Organization',
|
2902 |
'@context' => saswp_context_url(),
|
2903 |
'@type' => 'BlogPosting' ,
|
2904 |
'@id' => trailingslashit(get_permalink()).'#BlogPosting',
|
2905 |
+
'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_inlanguage_'.$schema_id, 'saswp_array'),
|
2906 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
2907 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_headline_'.$schema_id, 'saswp_array'),
|
2908 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_description_'.$schema_id, 'saswp_array'),
|
2909 |
'articleBody' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_body_'.$schema_id, 'saswp_array'),
|
2910 |
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_blogposting_keywords_'.$schema_id, 'saswp_array'),
|
3242 |
$slogo = get_post_meta( get_the_ID(), 'saswp_article_organization_logo_'.$schema_id.'_detail',true);
|
3243 |
|
3244 |
$input1 = array(
|
3245 |
+
'@context' => saswp_context_url(),
|
3246 |
+
'@type' => 'Article',
|
3247 |
'@id' => trailingslashit(get_permalink()).'#article',
|
3248 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_article_url_'.$schema_id, 'saswp_array'),
|
3249 |
+
'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_article_inlanguage_'.$schema_id, 'saswp_array'),
|
3250 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3251 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_article_image_'.$schema_id, 'saswp_array'),
|
3252 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_article_headline_'.$schema_id, 'saswp_array'),
|
3253 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_article_description_'.$schema_id, 'saswp_array'),
|
3254 |
'articleSection' => saswp_remove_warnings($all_post_meta, 'saswp_article_section_'.$schema_id, 'saswp_array'),
|
3255 |
'articleBody' => isset($all_post_meta['saswp_article_body_'.$schema_id][0]) ? wp_strip_all_tags(strip_shortcodes($all_post_meta['saswp_article_body_'.$schema_id][0])) : '',
|
3256 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_article_keywords_'.$schema_id, 'saswp_array'),
|
3257 |
'datePublished' => isset($all_post_meta['saswp_article_date_published_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_article_date_published_'.$schema_id][0], get_post_time('h:i:s')):'',
|
3258 |
'dateModified' => isset($all_post_meta['saswp_article_date_modified_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_article_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')):'',
|
3259 |
|
3318 |
$slogo = get_post_meta( get_the_ID(), 'saswp_tech_article_organization_logo_'.$schema_id.'_detail',true);
|
3319 |
|
3320 |
$input1 = array(
|
3321 |
+
'@context' => saswp_context_url(),
|
3322 |
+
'@type' => 'TechArticle',
|
3323 |
'@id' => trailingslashit(get_permalink()).'#techarticle',
|
3324 |
+
'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_inlanguage_'.$schema_id, 'saswp_array'),
|
3325 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3326 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_image_'.$schema_id, 'saswp_array'),
|
3327 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_headline_'.$schema_id, 'saswp_array'),
|
3328 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_description_'.$schema_id, 'saswp_array'),
|
3329 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_tech_article_keywords_'.$schema_id, 'saswp_array'),
|
3330 |
'datePublished' => isset($all_post_meta['saswp_tech_article_date_published_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_tech_article_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
|
3331 |
'dateModified' => isset($all_post_meta['saswp_tech_article_date_modified_'.$schema_id][0])? saswp_format_date_time($all_post_meta['saswp_tech_article_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) :'',
|
3332 |
'publisher' => array(
|
3390 |
$author_image = get_post_meta( get_the_ID(), 'saswp_newsarticle_author_image_'.$schema_id.'_detail',true);
|
3391 |
|
3392 |
$input1 = array(
|
3393 |
+
'@context' => saswp_context_url(),
|
3394 |
+
'@type' => 'NewsArticle' ,
|
3395 |
+
'@id' => trailingslashit(get_permalink()).'#newsarticle',
|
3396 |
+
'inLanguage' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_inlanguage_'.$schema_id, 'saswp_array'),
|
3397 |
'mainEntityOfPage' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_of_page_'.$schema_id, 'saswp_array'),
|
3398 |
+
'url' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_URL_'.$schema_id, 'saswp_array'),
|
3399 |
+
'image' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_image_'.$schema_id, 'saswp_array'),
|
3400 |
+
'headline' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_headline_'.$schema_id, 'saswp_array'),
|
3401 |
'datePublished' => isset($all_post_meta['saswp_newsarticle_date_published_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_newsarticle_date_published_'.$schema_id][0], get_post_time('h:i:s')) :'',
|
3402 |
'dateModified' => isset($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id])? saswp_format_date_time($all_post_meta['saswp_newsarticle_date_modified_'.$schema_id][0], get_the_modified_time('h:i:s')) :'',
|
3403 |
'description' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_description_'.$schema_id, 'saswp_array'),
|
3404 |
+
'keywords' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_keywords_'.$schema_id, 'saswp_array'),
|
3405 |
+
'articleSection' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_section_'.$schema_id, 'saswp_array'),
|
3406 |
+
'articleBody' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_body_'.$schema_id, 'saswp_array'),
|
3407 |
+
'name' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_name_'.$schema_id, 'saswp_array'),
|
3408 |
'thumbnailUrl' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_thumbnailurl_'.$schema_id, 'saswp_array'),
|
3409 |
+
'wordCount' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_word_count_'.$schema_id, 'saswp_array'),
|
3410 |
+
'timeRequired' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_timerequired_'.$schema_id, 'saswp_array'),
|
3411 |
'mainEntity' => array(
|
3412 |
+
'@type' => 'WebPage',
|
3413 |
+
'@id' => saswp_remove_warnings($all_post_meta, 'saswp_newsarticle_main_entity_id_'.$schema_id, 'saswp_array'),
|
3414 |
),
|
3415 |
'publisher' => array(
|
3416 |
'@type' => 'Organization',
|
output/service.php
CHANGED
@@ -1052,6 +1052,9 @@ Class saswp_output_service{
|
|
1052 |
if(isset($custom_fields['saswp_article_section'])){
|
1053 |
$input1['articleSection'] = $custom_fields['saswp_article_section'];
|
1054 |
}
|
|
|
|
|
|
|
1055 |
if(isset($custom_fields['saswp_article_headline'])){
|
1056 |
$input1['headline'] = $custom_fields['saswp_article_headline'];
|
1057 |
}
|
@@ -1285,6 +1288,9 @@ Class saswp_output_service{
|
|
1285 |
if(isset($custom_fields['saswp_blogposting_main_entity_of_page'])){
|
1286 |
$input1['mainEntityOfPage'] = $custom_fields['saswp_blogposting_main_entity_of_page'];
|
1287 |
}
|
|
|
|
|
|
|
1288 |
if(isset($custom_fields['saswp_blogposting_headline'])){
|
1289 |
$input1['headline'] = $custom_fields['saswp_blogposting_headline'];
|
1290 |
}
|
@@ -1449,6 +1455,9 @@ Class saswp_output_service{
|
|
1449 |
if(isset($custom_fields['saswp_newsarticle_URL'])){
|
1450 |
$input1['url'] = saswp_validate_url($custom_fields['saswp_newsarticle_URL']);
|
1451 |
}
|
|
|
|
|
|
|
1452 |
if(isset($custom_fields['saswp_newsarticle_headline'])){
|
1453 |
$input1['headline'] = $custom_fields['saswp_newsarticle_headline'];
|
1454 |
}
|
@@ -1734,6 +1743,9 @@ Class saswp_output_service{
|
|
1734 |
if(isset($custom_fields['saswp_tech_article_section'])){
|
1735 |
$input1['articleSection'] = $custom_fields['saswp_tech_article_section'];
|
1736 |
}
|
|
|
|
|
|
|
1737 |
if(isset($custom_fields['saswp_tech_article_headline'])){
|
1738 |
$input1['headline'] = $custom_fields['saswp_tech_article_headline'];
|
1739 |
}
|
@@ -3522,16 +3534,22 @@ Class saswp_output_service{
|
|
3522 |
$product_details['product_availability'] = $product->get_stock_status();
|
3523 |
}
|
3524 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3525 |
if(method_exists('WC_Product_Simple', 'get_type')){
|
3526 |
|
3527 |
if($product->get_type() == 'variable'){
|
3528 |
$product_details['product_varible_price'] = $varible_prices;
|
3529 |
}else{
|
3530 |
-
$product_details['product_price'] = $
|
3531 |
}
|
3532 |
|
3533 |
}else{
|
3534 |
-
$product_details['product_price'] = $
|
3535 |
}
|
3536 |
|
3537 |
$product_details['product_sku'] = $product->get_sku() ? $product->get_sku(): get_the_ID();
|
1052 |
if(isset($custom_fields['saswp_article_section'])){
|
1053 |
$input1['articleSection'] = $custom_fields['saswp_article_section'];
|
1054 |
}
|
1055 |
+
if(isset($custom_fields['saswp_article_inlanguage'])){
|
1056 |
+
$input1['inLanguage'] = $custom_fields['saswp_article_inlanguage'];
|
1057 |
+
}
|
1058 |
if(isset($custom_fields['saswp_article_headline'])){
|
1059 |
$input1['headline'] = $custom_fields['saswp_article_headline'];
|
1060 |
}
|
1288 |
if(isset($custom_fields['saswp_blogposting_main_entity_of_page'])){
|
1289 |
$input1['mainEntityOfPage'] = $custom_fields['saswp_blogposting_main_entity_of_page'];
|
1290 |
}
|
1291 |
+
if(isset($custom_fields['saswp_blogposting_inlanguage'])){
|
1292 |
+
$input1['inLanguage'] = $custom_fields['saswp_blogposting_inlanguage'];
|
1293 |
+
}
|
1294 |
if(isset($custom_fields['saswp_blogposting_headline'])){
|
1295 |
$input1['headline'] = $custom_fields['saswp_blogposting_headline'];
|
1296 |
}
|
1455 |
if(isset($custom_fields['saswp_newsarticle_URL'])){
|
1456 |
$input1['url'] = saswp_validate_url($custom_fields['saswp_newsarticle_URL']);
|
1457 |
}
|
1458 |
+
if(isset($custom_fields['saswp_newsarticle_inlanguage'])){
|
1459 |
+
$input1['inLanguage'] = $custom_fields['saswp_newsarticle_inlanguage'];
|
1460 |
+
}
|
1461 |
if(isset($custom_fields['saswp_newsarticle_headline'])){
|
1462 |
$input1['headline'] = $custom_fields['saswp_newsarticle_headline'];
|
1463 |
}
|
1743 |
if(isset($custom_fields['saswp_tech_article_section'])){
|
1744 |
$input1['articleSection'] = $custom_fields['saswp_tech_article_section'];
|
1745 |
}
|
1746 |
+
if(isset($custom_fields['saswp_tech_article_inlanguage'])){
|
1747 |
+
$input1['inLanguage'] = $custom_fields['saswp_tech_article_inlanguage'];
|
1748 |
+
}
|
1749 |
if(isset($custom_fields['saswp_tech_article_headline'])){
|
1750 |
$input1['headline'] = $custom_fields['saswp_tech_article_headline'];
|
1751 |
}
|
3534 |
$product_details['product_availability'] = $product->get_stock_status();
|
3535 |
}
|
3536 |
|
3537 |
+
$woo_price = $product->get_price();
|
3538 |
+
|
3539 |
+
if( function_exists('wc_prices_include_tax') && wc_prices_include_tax() ) {
|
3540 |
+
$woo_price = wc_get_price_including_tax($product);
|
3541 |
+
}
|
3542 |
+
|
3543 |
if(method_exists('WC_Product_Simple', 'get_type')){
|
3544 |
|
3545 |
if($product->get_type() == 'variable'){
|
3546 |
$product_details['product_varible_price'] = $varible_prices;
|
3547 |
}else{
|
3548 |
+
$product_details['product_price'] = $woo_price;
|
3549 |
}
|
3550 |
|
3551 |
}else{
|
3552 |
+
$product_details['product_price'] = $woo_price;
|
3553 |
}
|
3554 |
|
3555 |
$product_details['product_sku'] = $product->get_sku() ? $product->get_sku(): get_the_ID();
|
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.5
|
6 |
-
Stable tag: 1.9.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -120,6 +120,15 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
= 1.9.56 (25 Nov 2020) =
|
124 |
|
125 |
* Added: option to add and remove single review in the collection #1239
|
3 |
Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 1.9.57
|
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.57 (05 Dec 2020) =
|
124 |
+
|
125 |
+
* Fixed: The price field not getting the taxable value for the product schema #1259
|
126 |
+
* Fixed: inLanguage property is absent from NewsArticle and Article schema types? #1260
|
127 |
+
* Fixed: Review schem mark up is not being fetched form the review collectioin badge type #1261
|
128 |
+
* Fixed: If the "WPMU DEV SEO" plugin is active then showing the JS error in the console #1262
|
129 |
+
* Added: Rating column in comments list when Stars Rating is enabled in the default comment form #1049
|
130 |
+
|
131 |
+
|
132 |
= 1.9.56 (25 Nov 2020) =
|
133 |
|
134 |
* Added: option to add and remove single review in the collection #1239
|
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.
|
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.
|
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.57
|
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.57');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|