WP SEO Structured Data Schema - Version 2.5.9

Version Description

  • Fix PHP error

=

Download this release

Release Info

Developer kcseopro
Plugin Icon 128x128 WP SEO Structured Data Schema
Version 2.5.9
Comparing to
See all releases

Code changes from version 2.5.8 to 2.5.9

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
- Stable tag: 2.5.8
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -114,6 +114,9 @@ You'll find the [FAQ on WPSEMPlugins.com](https://wpsemplugins.com/wordpress-seo
114
 
115
  == Changelog ==
116
 
 
 
 
117
  == 2.5.8 =
118
  * Fix Javascript issue
119
  * Update Contact Type
4
  Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
+ Stable tag: 2.5.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
114
 
115
  == Changelog ==
116
 
117
+ == 2.5.9 =
118
+ * Fix PHP error
119
+
120
  == 2.5.8 =
121
  * Fix Javascript issue
122
  * Update Contact Type
assets/css/admin.css CHANGED
@@ -136,7 +136,8 @@
136
  }
137
 
138
  .rt-tab-container .field-container input.kcseo-date {
139
- width: 120px;
 
140
  }
141
 
142
  /* tab */
@@ -219,11 +220,9 @@ ul.rt-tab-nav li a:focus {
219
  border: 1px solid #e7e7e7;
220
  padding: 20px;
221
  }
222
-
223
  .rt-tab-container .rt-tab-content:not(.active) {
224
  display: none;
225
  }
226
-
227
  div#rt-schema-tab-holder:after {
228
  clear: both;
229
  content: ".";
@@ -289,35 +288,30 @@ p.description.kco-telephone > span {
289
  .field-container .field-label span {
290
  margin-left: 5px;
291
  }
292
-
293
  p.description .required,
294
  .field-container .field-label span.required {
295
  color: red;
296
  }
297
-
298
  .field-container .field-label span.recommended {
299
  color: #721c24;
300
  }
301
-
302
  /* tooltip */
303
 
304
- [data-kcseo-tooltip] {
305
  position: relative;
306
  }
307
-
308
- [data-kcseo-tooltip]:hover::after {
309
  position: absolute;
310
  left: 50%;
311
  bottom: 100%;
312
  content: attr(data-kcseo-tooltip);
313
- background: rgba(0, 0, 0, .8);
314
  color: #fff;
315
  padding: .5em 1em;
316
  border-radius: 7px;
317
  transform: translateX(-50%);
318
  transition: all ease-in-out 250ms;
319
  }
320
-
321
  .schema-holder .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
322
  padding: .5em 0.6em;
323
  font-size: 14px;
136
  }
137
 
138
  .rt-tab-container .field-container input.kcseo-date {
139
+ width: auto;
140
+ min-width: 180px;
141
  }
142
 
143
  /* tab */
220
  border: 1px solid #e7e7e7;
221
  padding: 20px;
222
  }
 
223
  .rt-tab-container .rt-tab-content:not(.active) {
224
  display: none;
225
  }
 
226
  div#rt-schema-tab-holder:after {
227
  clear: both;
228
  content: ".";
288
  .field-container .field-label span {
289
  margin-left: 5px;
290
  }
 
291
  p.description .required,
292
  .field-container .field-label span.required {
293
  color: red;
294
  }
 
295
  .field-container .field-label span.recommended {
296
  color: #721c24;
297
  }
 
298
  /* tooltip */
299
 
300
+ [data-kcseo-tooltip]{
301
  position: relative;
302
  }
303
+ [data-kcseo-tooltip]:hover::after{
 
304
  position: absolute;
305
  left: 50%;
306
  bottom: 100%;
307
  content: attr(data-kcseo-tooltip);
308
+ background: rgba(0,0,0,.8);
309
  color: #fff;
310
  padding: .5em 1em;
311
  border-radius: 7px;
312
  transform: translateX(-50%);
313
  transition: all ease-in-out 250ms;
314
  }
 
315
  .schema-holder .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
316
  padding: .5em 0.6em;
317
  font-size: 14px;
lib/models/KcSeoSchemaModel.php CHANGED
@@ -276,16 +276,16 @@ if ( ! class_exists( 'KcSeoSchemaModel' ) ):
276
  if ( ! empty( $metaData['description'] ) ) {
277
  $product["description"] = $KcSeoWPSchema->sanitizeOutPut( $metaData['description'] );
278
  }
279
- /* product identifier */
280
- if (!empty($metaData['sku'])) {
281
- $product["sku"] = $KcSeoWPSchema->sanitizeOutPut($metaData['sku']);
282
- }
283
- if (!empty($metaData['brand'])) {
284
- $product["brand"] = $KcSeoWPSchema->sanitizeOutPut($metaData['brand']);
285
- }
286
- if (!empty($metaData['identifier_type'] && !empty($metaData['identifier']))) {
287
- $product[$metaData['identifier_type']] = $KcSeoWPSchema->sanitizeOutPut($metaData['identifier']);
288
- }
289
  if ( ! empty( $metaData['ratingValue'] ) ) {
290
  $product["aggregateRating"] = array(
291
  "@type" => "AggregateRating",
276
  if ( ! empty( $metaData['description'] ) ) {
277
  $product["description"] = $KcSeoWPSchema->sanitizeOutPut( $metaData['description'] );
278
  }
279
+ /* product identifier */
280
+ if ( ! empty( $metaData['sku'] ) ) {
281
+ $product["sku"] = $KcSeoWPSchema->sanitizeOutPut( $metaData['sku'] );
282
+ }
283
+ if ( ! empty( $metaData['brand'] ) ) {
284
+ $product["brand"] = $KcSeoWPSchema->sanitizeOutPut( $metaData['brand'] );
285
+ }
286
+ if ( ! empty( $metaData['identifier_type'] ) && ! empty( $metaData['identifier'] ) ) {
287
+ $product[ $metaData['identifier_type'] ] = $KcSeoWPSchema->sanitizeOutPut( $metaData['identifier'] );
288
+ }
289
  if ( ! empty( $metaData['ratingValue'] ) ) {
290
  $product["aggregateRating"] = array(
291
  "@type" => "AggregateRating",
wp-seo-structured-data-schema.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP SEO Structured Data Schema
4
  * Plugin URI: https://wpsemplugins.com/
5
  * Description: Comprehensive JSON-LD based Structured Data solution for WordPress for adding schema for organizations, businesses, blog posts, ratings & more.
6
- * Version: 2.5.8
7
  * Author: WPSEMPlugins
8
  * Author URI: https://wpsemplugins.com/
9
  * Text Domain: wp-seo-structured-data-schema
3
  * Plugin Name: WP SEO Structured Data Schema
4
  * Plugin URI: https://wpsemplugins.com/
5
  * Description: Comprehensive JSON-LD based Structured Data solution for WordPress for adding schema for organizations, businesses, blog posts, ratings & more.
6
+ * Version: 2.5.9
7
  * Author: WPSEMPlugins
8
  * Author URI: https://wpsemplugins.com/
9
  * Text Domain: wp-seo-structured-data-schema