Version Description
(2019-02-26) = * Checked : WordPress version 5.1.0 operation check. * Fixed : Notice Error.
Download this release
Release Info
Developer | miiitaka |
Plugin | Markup (JSON-LD) structured in schema.org |
Version | 4.6.4 |
Comparing to | |
See all releases |
Code changes from version 4.6.3 to 4.6.4
- includes/wp-structuring-display.php +9 -9
- readme.txt +6 -2
- wp-structuring-markup.php +4 -4
includes/wp-structuring-display.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
* @author Justin Frydman
|
7 |
-
* @version 4.6.
|
8 |
* @since 1.0.0
|
9 |
*/
|
10 |
class Structuring_Markup_Display {
|
@@ -218,7 +218,7 @@ class Structuring_Markup_Display {
|
|
218 |
/**
|
219 |
* Setting JSON-LD Template
|
220 |
*
|
221 |
-
* @since 4.
|
222 |
* @since 1.0.0
|
223 |
* @param array $args
|
224 |
* @param boolean $error
|
@@ -232,16 +232,16 @@ class Structuring_Markup_Display {
|
|
232 |
}
|
233 |
}
|
234 |
} else {
|
|
|
235 |
if ( is_array( $args ) ) {
|
236 |
-
$output = '';
|
237 |
if ( isset( $this->options['compress'] ) && $this->options['compress'] === 'on' ) {
|
238 |
-
$output.= '<script type="application/ld+json">';
|
239 |
-
$output.= json_encode( $args, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES );
|
240 |
-
$output.= '</script>';
|
241 |
} else {
|
242 |
-
$output.= '<script type="application/ld+json">'.PHP_EOL;
|
243 |
-
$output.= json_encode( $args, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT ).PHP_EOL;
|
244 |
-
$output.= '</script>'.PHP_EOL;
|
245 |
}
|
246 |
}
|
247 |
echo apply_filters( 'structuring_markup_output', $output );
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
* @author Justin Frydman
|
7 |
+
* @version 4.6.4
|
8 |
* @since 1.0.0
|
9 |
*/
|
10 |
class Structuring_Markup_Display {
|
218 |
/**
|
219 |
* Setting JSON-LD Template
|
220 |
*
|
221 |
+
* @since 4.6.4
|
222 |
* @since 1.0.0
|
223 |
* @param array $args
|
224 |
* @param boolean $error
|
232 |
}
|
233 |
}
|
234 |
} else {
|
235 |
+
$output = '';
|
236 |
if ( is_array( $args ) ) {
|
|
|
237 |
if ( isset( $this->options['compress'] ) && $this->options['compress'] === 'on' ) {
|
238 |
+
$output .= '<script type="application/ld+json">';
|
239 |
+
$output .= json_encode( $args, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES );
|
240 |
+
$output .= '</script>';
|
241 |
} else {
|
242 |
+
$output .= '<script type="application/ld+json">' . PHP_EOL;
|
243 |
+
$output .= json_encode( $args, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT ) . PHP_EOL;
|
244 |
+
$output .= '</script>' . PHP_EOL;
|
245 |
}
|
246 |
}
|
247 |
echo apply_filters( 'structuring_markup_output', $output );
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: miiitaka
|
3 |
Tags: schema, schema.org, json, json-ld, seo, post, posts, google, shortcode, breadcrumb
|
4 |
Requires at least: 4.3.1
|
5 |
-
Tested up to: 5.0
|
6 |
-
Stable tag: 4.6.
|
7 |
|
8 |
Allows you to include schema.org JSON-LD syntax markup on your website
|
9 |
|
@@ -68,6 +68,10 @@ if ( shortcode_exists( 'wp-structuring-markup-breadcrumb' ) ) {
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
71 |
= 4.6.3 (2019-02-02) =
|
72 |
* Checked : WordPress version 5.0.3 operation check.
|
73 |
* Updated : Filters for each schema.
|
2 |
Contributors: miiitaka
|
3 |
Tags: schema, schema.org, json, json-ld, seo, post, posts, google, shortcode, breadcrumb
|
4 |
Requires at least: 4.3.1
|
5 |
+
Tested up to: 5.1.0
|
6 |
+
Stable tag: 4.6.4
|
7 |
|
8 |
Allows you to include schema.org JSON-LD syntax markup on your website
|
9 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 4.6.4 (2019-02-26) =
|
72 |
+
* Checked : WordPress version 5.1.0 operation check.
|
73 |
+
* Fixed : Notice Error.
|
74 |
+
|
75 |
= 4.6.3 (2019-02-02) =
|
76 |
* Checked : WordPress version 5.0.3 operation check.
|
77 |
* Updated : Filters for each schema.
|
wp-structuring-markup.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Markup (JSON-LD) structured in schema.org
|
4 |
Plugin URI: https://github.com/miiitaka/wp-structuring-markup
|
5 |
Description: Allows you to include schema.org JSON-LD syntax markup on your website
|
6 |
-
Version: 4.6.
|
7 |
Author: Kazuya Takami
|
8 |
Author URI: https://www.terakoya.work/
|
9 |
License: GPLv2 or later
|
@@ -18,7 +18,7 @@ new Structuring_Markup();
|
|
18 |
* Schema.org Basic Class
|
19 |
*
|
20 |
* @author Kazuya Takami
|
21 |
-
* @version 4.6.
|
22 |
* @since 1.0.0
|
23 |
*/
|
24 |
class Structuring_Markup {
|
@@ -26,10 +26,10 @@ class Structuring_Markup {
|
|
26 |
/**
|
27 |
* Variable definition version.
|
28 |
*
|
29 |
-
* @version 4.6.
|
30 |
* @since 1.3.0
|
31 |
*/
|
32 |
-
private $version = '4.6.
|
33 |
|
34 |
/**
|
35 |
* Variable definition Text Domain.
|
3 |
Plugin Name: Markup (JSON-LD) structured in schema.org
|
4 |
Plugin URI: https://github.com/miiitaka/wp-structuring-markup
|
5 |
Description: Allows you to include schema.org JSON-LD syntax markup on your website
|
6 |
+
Version: 4.6.4
|
7 |
Author: Kazuya Takami
|
8 |
Author URI: https://www.terakoya.work/
|
9 |
License: GPLv2 or later
|
18 |
* Schema.org Basic Class
|
19 |
*
|
20 |
* @author Kazuya Takami
|
21 |
+
* @version 4.6.4
|
22 |
* @since 1.0.0
|
23 |
*/
|
24 |
class Structuring_Markup {
|
26 |
/**
|
27 |
* Variable definition version.
|
28 |
*
|
29 |
+
* @version 4.6.4
|
30 |
* @since 1.3.0
|
31 |
*/
|
32 |
+
private $version = '4.6.4';
|
33 |
|
34 |
/**
|
35 |
* Variable definition Text Domain.
|