WP SEO Structured Data Schema - Version 2.6.11

Version Description

  • Coding update

=

Download this release

Release Info

Developer kcseopro
Plugin Icon 128x128 WP SEO Structured Data Schema
Version 2.6.11
Comparing to
See all releases

Code changes from version 2.6.10 to 2.6.11

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp
5
  Requires at least: 4.5
6
  Tested up to: 5.3
7
- Stable tag: 2.6.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -114,6 +114,9 @@ You'll find the [FAQ on WPSEMPlugins.com](https://wpsemplugins.com/wordpress-seo
114
 
115
  == Changelog ==
116
 
 
 
 
117
  == 2.6.10 =
118
  * Bug fix
119
 
4
  Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp
5
  Requires at least: 4.5
6
  Tested up to: 5.3
7
+ Stable tag: 2.6.11
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
114
 
115
  == Changelog ==
116
 
117
+ == 2.6.11 =
118
+ * Coding update
119
+
120
  == 2.6.10 =
121
  * Bug fix
122
 
languages/wp-seo-structured-data-schema.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 WP SEO Structured Data Schema
2
  # This file is distributed under the same license as the WP SEO Structured Data Schema package.
3
  msgid ""
4
  msgstr ""
1
+ # Copyright (C) 2020 WP SEO Structured Data Schema
2
  # This file is distributed under the same license as the WP SEO Structured Data Schema package.
3
  msgid ""
4
  msgstr ""
wp-seo-structured-data-schema.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP SEO Structured Data Schema
4
  * Plugin URI: https://wpsemplugins.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.6.10
7
  * Author: WPSEMPlugins
8
  * Author URI: https://wpsemplugins.com/
9
  * Text Domain: wp-seo-structured-data-schema
@@ -41,26 +41,28 @@ define( 'KCSEO_WP_SCHEMA_LANGUAGE_PATH', dirname( plugin_basename( __FILE__ ) )
41
  require( 'lib/init.php' );
42
  register_uninstall_hook( __FILE__, 'KCSEO_uninstall' );
43
 
44
- function KCSEO_uninstall() {
45
- $settings = get_option( kcseo()->options['main_settings'] );
46
- if ( ! empty( $settings['delete-data'] ) ) {
47
- $schemaFields = KcSeoOptions::getSchemaTypes();
 
48
 
49
- $args = array(
50
- 'post_type' => array( 'page', 'post' ),
51
- 'posts_per_page' => '-1'
52
- );
53
- $pages = new WP_Query ( $args );
54
- if ( $pages->have_posts() ) {
55
 
56
- while ( $pages->have_posts() ) {
57
- $pages->the_post();
58
- foreach ( $schemaFields as $schemaID => $schema ) {
59
- delete_post_meta( get_the_ID(), '_schema_' . $schemaID );
 
60
  }
 
61
  }
62
- wp_reset_postdata();
63
  }
64
- }
65
 
 
66
  }
3
  * Plugin Name: WP SEO Structured Data Schema
4
  * Plugin URI: https://wpsemplugins.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.6.11
7
  * Author: WPSEMPlugins
8
  * Author URI: https://wpsemplugins.com/
9
  * Text Domain: wp-seo-structured-data-schema
41
  require( 'lib/init.php' );
42
  register_uninstall_hook( __FILE__, 'KCSEO_uninstall' );
43
 
44
+ if ( ! function_exists( 'KCSEO_uninstall' ) ) {
45
+ function KCSEO_uninstall() {
46
+ $settings = get_option( kcseo()->options['main_settings'] );
47
+ if ( ! empty( $settings['delete-data'] ) ) {
48
+ $schemaFields = KcSeoOptions::getSchemaTypes();
49
 
50
+ $args = array(
51
+ 'post_type' => array( 'page', 'post' ),
52
+ 'posts_per_page' => '-1'
53
+ );
54
+ $pages = new WP_Query ( $args );
55
+ if ( $pages->have_posts() ) {
56
 
57
+ while ( $pages->have_posts() ) {
58
+ $pages->the_post();
59
+ foreach ( $schemaFields as $schemaID => $schema ) {
60
+ delete_post_meta( get_the_ID(), '_schema_' . $schemaID );
61
+ }
62
  }
63
+ wp_reset_postdata();
64
  }
 
65
  }
 
66
 
67
+ }
68
  }