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

Version Description

  • Bug Fix.
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

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.3
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,6 +21,12 @@ Base knowledge is "https://developers.google.com/structured-data/"
21
 
22
  == Changelog ==
23
 
 
 
 
 
 
 
24
  = 1.0.3 =
25
  * Bug Fix.
26
 
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.5
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.5 =
25
+ * Bug Fix.
26
+
27
+ = 1.0.4 =
28
+ * Bug Fix.
29
+
30
  = 1.0.3 =
31
  * Bug Fix.
32
 
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 = "admin.php?page=wp-structuring-admin-post.php";
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 = ABSPATH . "wp-admin/admin.php?page=wp-structuring-admin-post.php";
46
  $self_url = $_SERVER['PHP_SELF'] . '?' . esc_html( $_SERVER['QUERY_STRING'] );
47
 
48
  $html = '';
wp-structuring-admin-post.php CHANGED
@@ -1,6 +1,4 @@
1
  <?php
2
- define( 'WP_STRUCTURING_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
3
-
4
  /**
5
  * Schema.org Admin Post
6
  *
@@ -104,7 +102,7 @@ class Structuring_Markup_Admin_Post {
104
  */
105
  private function page_render( array $options, $mode, $status ) {
106
  $html = '';
107
- $html .= '<link rel="stylesheet" href="' . WP_STRUCTURING_PLUGIN_DIR . 'css/style.css">';
108
  $html .= '<div class="wrap">';
109
  $html .= '<h1>Schema.org Post</h1>';
110
  echo $html;
@@ -159,7 +157,7 @@ class Structuring_Markup_Admin_Post {
159
  $html = '</td></tr></table><hr>';
160
  echo $html;
161
 
162
- require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-type-website.php' );
163
  new Structuring_Markup_Type_Website( $options['option'] );
164
  break;
165
  case 'organization':
@@ -170,7 +168,7 @@ class Structuring_Markup_Admin_Post {
170
  $html = '</td></tr></table><hr>';
171
  echo $html;
172
 
173
- require_once ( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-type-organization.php' );
174
  new Structuring_Markup_Type_Organization( $options['option'] );
175
  break;
176
  case 'news_article':
@@ -178,7 +176,7 @@ class Structuring_Markup_Admin_Post {
178
  $html = '</td></tr></table><hr>';
179
  echo $html;
180
 
181
- require_once ( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-type-news-article.php' );
182
  new Structuring_Markup_Type_NewsArticle();
183
  break;
184
  }
1
  <?php
 
 
2
  /**
3
  * Schema.org Admin Post
4
  *
102
  */
103
  private function page_render( array $options, $mode, $status ) {
104
  $html = '';
105
+ $html .= '<link rel="stylesheet" href="' . plugin_dir_path( __FILE__ ) . 'css/style.css">';
106
  $html .= '<div class="wrap">';
107
  $html .= '<h1>Schema.org Post</h1>';
108
  echo $html;
157
  $html = '</td></tr></table><hr>';
158
  echo $html;
159
 
160
+ require_once( plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-type-website.php' );
161
  new Structuring_Markup_Type_Website( $options['option'] );
162
  break;
163
  case 'organization':
168
  $html = '</td></tr></table><hr>';
169
  echo $html;
170
 
171
+ require_once ( plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-type-organization.php' );
172
  new Structuring_Markup_Type_Organization( $options['option'] );
173
  break;
174
  case 'news_article':
176
  $html = '</td></tr></table><hr>';
177
  echo $html;
178
 
179
+ require_once ( plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-type-news-article.php' );
180
  new Structuring_Markup_Type_NewsArticle();
181
  break;
182
  }
wp-structuring-markup.php CHANGED
@@ -3,14 +3,13 @@
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.3
7
  Author: Kazuya Takami
8
  Author URI: http://programp.com/
9
  License: GPLv2 or later
10
  Text Domain: wp-structuring-markup
11
  */
12
- define( 'WP_STRUCTURING_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
13
- require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-db.php' );
14
 
15
  new Structuring_Markup();
16
 
@@ -65,7 +64,7 @@ class Structuring_Markup {
65
  'Scheme.org Setting Post',
66
  'Add New',
67
  'manage_options',
68
- WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-post.php',
69
  array($this, 'post_page_render')
70
  );
71
  }
@@ -76,7 +75,7 @@ class Structuring_Markup {
76
  * @since 1.0.0
77
  */
78
  public function list_page_render() {
79
- require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-list.php' );
80
  new Structuring_Markup_Admin_List();
81
  }
82
 
@@ -86,7 +85,7 @@ class Structuring_Markup {
86
  * @since 1.0.0
87
  */
88
  public function post_page_render() {
89
- require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-post.php' );
90
  new Structuring_Markup_Admin_Post();
91
  }
92
 
@@ -96,7 +95,7 @@ class Structuring_Markup {
96
  * @since 1.0.0
97
  */
98
  public function display_page_render() {
99
- require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-display.php' );
100
  new Structuring_Markup_Display();
101
  }
102
  }
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.5
7
  Author: Kazuya Takami
8
  Author URI: http://programp.com/
9
  License: GPLv2 or later
10
  Text Domain: wp-structuring-markup
11
  */
12
+ require_once( plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-db.php' );
 
13
 
14
  new Structuring_Markup();
15
 
64
  'Scheme.org Setting Post',
65
  'Add New',
66
  'manage_options',
67
+ plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-post.php',
68
  array($this, 'post_page_render')
69
  );
70
  }
75
  * @since 1.0.0
76
  */
77
  public function list_page_render() {
78
+ require_once( plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-list.php' );
79
  new Structuring_Markup_Admin_List();
80
  }
81
 
85
  * @since 1.0.0
86
  */
87
  public function post_page_render() {
88
+ require_once( plugin_dir_path( __FILE__ ) . 'wp-structuring-admin-post.php' );
89
  new Structuring_Markup_Admin_Post();
90
  }
91
 
95
  * @since 1.0.0
96
  */
97
  public function display_page_render() {
98
+ require_once( plugin_dir_path( __FILE__ ) . 'wp-structuring-display.php' );
99
  new Structuring_Markup_Display();
100
  }
101
  }