Version Description
- Bug Fix.
Download this release
Release Info
Developer | miiitaka |
Plugin | Markup (JSON-LD) structured in schema.org |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- readme.txt +2 -14
- wp-structuring-admin-list.php +1 -1
- wp-structuring-display.php +2 -1
- wp-structuring-markup.php +1 -1
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: miiitaka
|
|
3 |
Tags: schema, json, seo, posts
|
4 |
Requires at least: 4.3.1
|
5 |
Tested up to: 4.3.1
|
6 |
-
Stable tag: 1.0.
|
7 |
|
8 |
It is plug in to implement structured markup (JSON-LD syntax) by schema.org definition on an article or the fixed page.
|
9 |
|
@@ -21,19 +21,7 @@ Base knowledge is "https://developers.google.com/structured-data/"
|
|
21 |
|
22 |
== Changelog ==
|
23 |
|
24 |
-
= 1.0.
|
25 |
-
* Bug Fix.
|
26 |
-
|
27 |
-
= 1.0.4 =
|
28 |
-
* Bug Fix.
|
29 |
-
|
30 |
-
= 1.0.3 =
|
31 |
-
* Bug Fix.
|
32 |
-
|
33 |
-
= 1.0.2 =
|
34 |
-
* Bug Fix.
|
35 |
-
|
36 |
-
= 1.0.1 =
|
37 |
* Bug Fix.
|
38 |
|
39 |
= 1.0.0 =
|
3 |
Tags: schema, json, seo, posts
|
4 |
Requires at least: 4.3.1
|
5 |
Tested up to: 4.3.1
|
6 |
+
Stable tag: 1.0.6
|
7 |
|
8 |
It is plug in to implement structured markup (JSON-LD syntax) by schema.org definition on an article or the fixed page.
|
9 |
|
21 |
|
22 |
== Changelog ==
|
23 |
|
24 |
+
= 1.0.6 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
* Bug Fix.
|
26 |
|
27 |
= 1.0.0 =
|
wp-structuring-admin-list.php
CHANGED
@@ -42,7 +42,7 @@ class Structuring_Markup_Admin_List {
|
|
42 |
* @param String $mode
|
43 |
*/
|
44 |
private function page_render( Structuring_Markup_Admin_Db $db, $mode = "" ) {
|
45 |
-
$post_url =
|
46 |
$self_url = $_SERVER['PHP_SELF'] . '?' . esc_html( $_SERVER['QUERY_STRING'] );
|
47 |
|
48 |
$html = '';
|
42 |
* @param String $mode
|
43 |
*/
|
44 |
private function page_render( Structuring_Markup_Admin_Db $db, $mode = "" ) {
|
45 |
+
$post_url = admin_url() . "admin.php?page=wp-structuring-markup/wp-structuring-admin-post.php";
|
46 |
$self_url = $_SERVER['PHP_SELF'] . '?' . esc_html( $_SERVER['QUERY_STRING'] );
|
47 |
|
48 |
$html = '';
|
wp-structuring-display.php
CHANGED
@@ -161,12 +161,13 @@ class Structuring_Markup_Display {
|
|
161 |
private function set_schema_news_article() {
|
162 |
global $post;
|
163 |
if ( has_post_thumbnail( $post->ID ) ) {
|
|
|
164 |
$args = array(
|
165 |
"@context" => "http://schema.org",
|
166 |
"@type" => "NewsArticle",
|
167 |
"headline" => esc_html( $post->post_title ),
|
168 |
"datePublished" => get_the_time( DATE_ISO8601, $post->ID ),
|
169 |
-
"image" => array(
|
170 |
"description" => esc_html( $post->post_excerpt ),
|
171 |
"articleBody" => esc_html( $post->post_content )
|
172 |
);
|
161 |
private function set_schema_news_article() {
|
162 |
global $post;
|
163 |
if ( has_post_thumbnail( $post->ID ) ) {
|
164 |
+
list( $thumbnail_url, $thumbnail_width, $thumbnail_height ) = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
|
165 |
$args = array(
|
166 |
"@context" => "http://schema.org",
|
167 |
"@type" => "NewsArticle",
|
168 |
"headline" => esc_html( $post->post_title ),
|
169 |
"datePublished" => get_the_time( DATE_ISO8601, $post->ID ),
|
170 |
+
"image" => array( $thumbnail_url ),
|
171 |
"description" => esc_html( $post->post_excerpt ),
|
172 |
"articleBody" => esc_html( $post->post_content )
|
173 |
);
|
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: It is plug in to implement structured markup (JSON-LD syntax) by schema.org definition on an article or the fixed page.
|
6 |
-
Version: 1.0.
|
7 |
Author: Kazuya Takami
|
8 |
Author URI: http://programp.com/
|
9 |
License: GPLv2 or later
|
3 |
Plugin Name: Markup (JSON-LD) structured in schema.org
|
4 |
Plugin URI: https://github.com/miiitaka/wp-structuring-markup
|
5 |
Description: It is plug in to implement structured markup (JSON-LD syntax) by schema.org definition on an article or the fixed page.
|
6 |
+
Version: 1.0.6
|
7 |
Author: Kazuya Takami
|
8 |
Author URI: http://programp.com/
|
9 |
License: GPLv2 or later
|