Markup (JSON-LD) structured in schema.org - Version 2.0.2

Version Description

(2015/11/27)=

  • Fixed : Breadcrumb ShortCode minor bug fixed.
Download this release

Release Info

Developer miiitaka
Plugin Icon 128x128 Markup (JSON-LD) structured in schema.org
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

includes/wp-structuring-admin-type-breadcrumb.php CHANGED
@@ -3,7 +3,7 @@
3
  * Schema.org Type Breadcrumb
4
  *
5
  * @author Kazuya Takami
6
- * @version 2.0.0
7
  * @since 2.0.0
8
  * @see wp-structuring-admin-db.php
9
  * @link https://schema.org/BreadcrumbList
@@ -56,12 +56,13 @@ class Structuring_Markup_Type_Breadcrumb {
56
  /**
57
  * Return the default options array
58
  *
59
- * @since 2.0.0
60
- * @param array $args
61
- * @return array $args
 
62
  */
63
  private function get_default_options( array $args ) {
64
- $args['home_on'] = 'on';
65
  $args['home_name'] = '';
66
 
67
  return (array) $args;
3
  * Schema.org Type Breadcrumb
4
  *
5
  * @author Kazuya Takami
6
+ * @version 2.0.2
7
  * @since 2.0.0
8
  * @see wp-structuring-admin-db.php
9
  * @link https://schema.org/BreadcrumbList
56
  /**
57
  * Return the default options array
58
  *
59
+ * @version 2.0.2
60
+ * @since 2.0.0
61
+ * @param array $args
62
+ * @return array $args
63
  */
64
  private function get_default_options( array $args ) {
65
+ $args['home_on'] = '';
66
  $args['home_name'] = '';
67
 
68
  return (array) $args;
includes/wp-structuring-short-code-breadcrumb.php CHANGED
@@ -3,7 +3,7 @@
3
  * Breadcrumb ShortCode Settings
4
  *
5
  * @author Kazuya Takami
6
- * @version 2.0.0
7
  * @since 2.0.0
8
  */
9
  class Structuring_Markup_ShortCode_Breadcrumb {
@@ -40,10 +40,11 @@ class Structuring_Markup_ShortCode_Breadcrumb {
40
  /**
41
  * Breadcrumb array setting.
42
  *
43
- * @since 2.0.0
44
- * @access public
45
- * @param array $options
46
- * @return array $item_array
 
47
  */
48
  public function breadcrumb_array_setting( array $options ) {
49
  global $post;
@@ -53,7 +54,7 @@ class Structuring_Markup_ShortCode_Breadcrumb {
53
  $current_url = esc_url( home_url() . $_SERVER['REQUEST_URI'] );
54
 
55
  if ( isset( $options['home_on'] ) && $options['home_on'] === 'on' ) {
56
- if ( isset( $options['home_name'] ) ) {
57
  $item_array[] = $this->set_schema_breadcrumb_item( home_url(), $options['home_name'] );
58
  } else {
59
  $item_array[] = $this->set_schema_breadcrumb_item( home_url(), get_bloginfo('name') );
3
  * Breadcrumb ShortCode Settings
4
  *
5
  * @author Kazuya Takami
6
+ * @version 2.0.2
7
  * @since 2.0.0
8
  */
9
  class Structuring_Markup_ShortCode_Breadcrumb {
40
  /**
41
  * Breadcrumb array setting.
42
  *
43
+ * @version 2.0.2
44
+ * @since 2.0.0
45
+ * @access public
46
+ * @param array $options
47
+ * @return array $item_array
48
  */
49
  public function breadcrumb_array_setting( array $options ) {
50
  global $post;
54
  $current_url = esc_url( home_url() . $_SERVER['REQUEST_URI'] );
55
 
56
  if ( isset( $options['home_on'] ) && $options['home_on'] === 'on' ) {
57
+ if ( isset( $options['home_name'] ) && $options['home_name'] !== '' ) {
58
  $item_array[] = $this->set_schema_breadcrumb_item( home_url(), $options['home_name'] );
59
  } else {
60
  $item_array[] = $this->set_schema_breadcrumb_item( home_url(), get_bloginfo('name') );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: miiitaka
3
  Tags: schema, schema.org, json, json-ld, seo, post, posts, google
4
  Requires at least: 4.3.1
5
  Tested up to: 4.3.1
6
- Stable tag: 2.0.1
7
 
8
  It is plug in to implement structured markup (JSON-LD syntax) by schema.org definition on an post page, fixed page and etc.
9
 
@@ -41,6 +41,10 @@ You can display the breadcrumbs in the short code. Breadcrumb definition is avai
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 2.0.1 (2015/11/25) =
45
 
46
  * Fixed : Notice error fixed.
3
  Tags: schema, schema.org, json, json-ld, seo, post, posts, google
4
  Requires at least: 4.3.1
5
  Tested up to: 4.3.1
6
+ Stable tag: 2.0.2
7
 
8
  It is plug in to implement structured markup (JSON-LD syntax) by schema.org definition on an post page, fixed page and etc.
9
 
41
 
42
  == Changelog ==
43
 
44
+ = 2.0.2 (2015/11/27)=
45
+
46
+ * Fixed : Breadcrumb ShortCode minor bug fixed.
47
+
48
  = 2.0.1 (2015/11/25) =
49
 
50
  * Fixed : Notice error fixed.
wp-structuring-markup.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Markup (JSON-LD) structured in schema.org
4
  Plugin URI: https://wordpress.org/plugins/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: 2.0.1
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://wordpress.org/plugins/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: 2.0.2
7
  Author: Kazuya Takami
8
  Author URI: http://programp.com/
9
  License: GPLv2 or later