Version Description
- Major update at coding and structure
- Recover data from 1.2
- Add image browser to set image
- Update some Google schema structure
Download this release
Release Info
Developer | kcseopro |
Plugin | WP SEO Structured Data Schema |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 2.0
- lib/classes/KcSeoInit.php +5 -1
- lib/classes/KcSeoMetaData.php +1 -1
- lib/init.php +1 -1
- readme.txt +8 -2
- wp-seo-structured-data-schema.php +9 -34
lib/classes/KcSeoInit.php
CHANGED
@@ -163,11 +163,15 @@ if ( ! class_exists( 'KcSeoInit' ) ):
|
|
163 |
|
164 |
function kcSeo_pluginInit() {
|
165 |
load_plugin_textdomain( KCSEO_WP_SCHEMA_SLUG, false, KCSEO_WP_SCHEMA_LANGUAGE_PATH );
|
166 |
-
$this->
|
167 |
}
|
168 |
|
169 |
|
170 |
function activePlugin() {
|
|
|
|
|
|
|
|
|
171 |
global $KcSeoWPSchema;
|
172 |
$KcSeoWPSchema->fix1_2DataMigration();
|
173 |
update_option($KcSeoWPSchema->options['installed_version'],$KcSeoWPSchema->options['version']);
|
163 |
|
164 |
function kcSeo_pluginInit() {
|
165 |
load_plugin_textdomain( KCSEO_WP_SCHEMA_SLUG, false, KCSEO_WP_SCHEMA_LANGUAGE_PATH );
|
166 |
+
$this->updateVariableAndFixIssue();
|
167 |
}
|
168 |
|
169 |
|
170 |
function activePlugin() {
|
171 |
+
$this->updateVariableAndFixIssue();
|
172 |
+
}
|
173 |
+
|
174 |
+
function updateVariableAndFixIssue(){
|
175 |
global $KcSeoWPSchema;
|
176 |
$KcSeoWPSchema->fix1_2DataMigration();
|
177 |
update_option($KcSeoWPSchema->options['installed_version'],$KcSeoWPSchema->options['version']);
|
lib/classes/KcSeoMetaData.php
CHANGED
@@ -112,7 +112,7 @@ if(!class_exists('KcSeoMetaData')):
|
|
112 |
$value = $KcSeoWPSchema->sanitize($fieldData, $value);
|
113 |
$data[$fieldId] = $value;
|
114 |
}
|
115 |
-
|
116 |
}
|
117 |
if(count($meta) > 0){
|
118 |
foreach($meta as $mKey => $mValue){
|
112 |
$value = $KcSeoWPSchema->sanitize($fieldData, $value);
|
113 |
$data[$fieldId] = $value;
|
114 |
}
|
115 |
+
$meta[$schemaMetaId] = $data;
|
116 |
}
|
117 |
if(count($meta) > 0){
|
118 |
foreach($meta as $mKey => $mValue){
|
lib/init.php
CHANGED
@@ -11,7 +11,7 @@ if(!class_exists('KcSeoWPSchema')){
|
|
11 |
$this->options = array(
|
12 |
'settings' => 'kcseo_wp_schema',
|
13 |
'installed_version' => 'kcseo_wp_installed_version',
|
14 |
-
'version' => '
|
15 |
'1_2_fix' => "kcseo_wp_1_2_data_fix"
|
16 |
);
|
17 |
|
11 |
$this->options = array(
|
12 |
'settings' => 'kcseo_wp_schema',
|
13 |
'installed_version' => 'kcseo_wp_installed_version',
|
14 |
+
'version' => '2.0',
|
15 |
'1_2_fix' => "kcseo_wp_1_2_data_fix"
|
16 |
);
|
17 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: kcseopro
|
|
3 |
Donate link:
|
4 |
Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp, amp
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -93,6 +93,12 @@ You'll find the [FAQ on Kcseopro.com](http://kcseopro.com/).
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
= 1.3 =
|
97 |
* Data recover
|
98 |
* Image issue
|
3 |
Donate link:
|
4 |
Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp, amp
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.7
|
7 |
+
Stable tag: 2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 2.0 =
|
97 |
+
* Major update at coding and structure
|
98 |
+
* Recover data from 1.2
|
99 |
+
* Add image browser to set image
|
100 |
+
* Update some Google schema structure
|
101 |
+
|
102 |
= 1.3 =
|
103 |
* Data recover
|
104 |
* Image issue
|
wp-seo-structured-data-schema.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*Plugin Name: WP SEO Structured Data Schema
|
4 |
* Plugin URI: http://kcseopro.com/
|
5 |
* Description: Comprehensive JSON-LD based Structured Data solution for WordPress for adding schema for organizations, businesses, blog posts, ratings & more.
|
6 |
-
* Version:
|
7 |
* Author: kcseopro
|
8 |
* Author URI: http://kcseopro.com/
|
9 |
* License: A "Slug" license name e.g. GPL2
|
@@ -11,42 +11,17 @@
|
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
exit;
|
13 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
define('KCSEO_WP_SCHEMA_SLUG', 'wp-seo-structured-data-schema');
|
15 |
define('KCSEO_WP_SCHEMA_PATH', dirname(__FILE__));
|
16 |
define('KCSEO_WP_SCHEMA_PLUGIN_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ));
|
17 |
define('KCSEO_WP_SCHEMA_URL', plugins_url('', __FILE__));
|
18 |
define('KCSEO_WP_SCHEMA_LANGUAGE_PATH', dirname( plugin_basename( __FILE__ ) ) . '/languages');
|
19 |
|
20 |
-
require ('lib/init.php');
|
21 |
-
|
22 |
-
//register_activation_hook(__FILE__, 'kcSeo_active');
|
23 |
-
/**
|
24 |
-
*
|
25 |
-
*/
|
26 |
-
function kcSeo_active(){
|
27 |
-
|
28 |
-
register_uninstall_hook( __FILE__, 'kcSeo_uninstall' );
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
*
|
33 |
-
*/
|
34 |
-
function kcSeo_uninstall(){
|
35 |
-
|
36 |
-
$metas = array(
|
37 |
-
'_schema_article',
|
38 |
-
'_schema_blog_posting',
|
39 |
-
'_schema_news_article',
|
40 |
-
'_schema_event',
|
41 |
-
'_schema_product',
|
42 |
-
'_schema_video',
|
43 |
-
'_schema_service',
|
44 |
-
'_schema_review',
|
45 |
-
'_schema_aggregate_rating'
|
46 |
-
);
|
47 |
-
|
48 |
-
foreach($metas as $meta){
|
49 |
-
delete_post_meta_by_key($meta);
|
50 |
-
}
|
51 |
-
|
52 |
-
}
|
3 |
*Plugin Name: WP SEO Structured Data Schema
|
4 |
* Plugin URI: http://kcseopro.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.0
|
7 |
* Author: kcseopro
|
8 |
* Author URI: http://kcseopro.com/
|
9 |
* License: A "Slug" license name e.g. GPL2
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
exit;
|
13 |
}
|
14 |
+
if (!defined('JSON_UNESCAPED_SLASHES'))
|
15 |
+
define('JSON_UNESCAPED_SLASHES', 64);
|
16 |
+
if (!defined('JSON_PRETTY_PRINT'))
|
17 |
+
define('JSON_PRETTY_PRINT', 128);
|
18 |
+
if (!defined('JSON_UNESCAPED_UNICODE'))
|
19 |
+
define('JSON_UNESCAPED_UNICODE', 256);
|
20 |
+
|
21 |
define('KCSEO_WP_SCHEMA_SLUG', 'wp-seo-structured-data-schema');
|
22 |
define('KCSEO_WP_SCHEMA_PATH', dirname(__FILE__));
|
23 |
define('KCSEO_WP_SCHEMA_PLUGIN_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ));
|
24 |
define('KCSEO_WP_SCHEMA_URL', plugins_url('', __FILE__));
|
25 |
define('KCSEO_WP_SCHEMA_LANGUAGE_PATH', dirname( plugin_basename( __FILE__ ) ) . '/languages');
|
26 |
|
27 |
+
require ('lib/init.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|