Schema & Structured Data for WP & AMP - Version 1.9.101.1

Version Description

(01 Oct 2022) =

  • Fixed: PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in .../wp-includes/pluggable.php:928 #1749
Download this release

Release Info

Developer magazine3
Plugin Icon 128x128 Schema & Structured Data for WP & AMP
Version 1.9.101.1
Comparing to
See all releases

Code changes from version 1.9.101 to 1.9.101.1

admin_section/common-function.php CHANGED
@@ -1821,9 +1821,10 @@ if ( ! defined('ABSPATH') ) exit;
1821
  }
1822
 
1823
  function saswp_defaultSettings(){
1824
- if(!function_exists('wp_get_current_user')) {
1825
- include(ABSPATH . "wp-includes/pluggable.php");
1826
- }
 
1827
  global $sd_data;
1828
 
1829
  $sd_data = get_option( 'sd_data', saswp_default_settings_array());
@@ -3278,9 +3279,9 @@ function saswp_current_user_allowed(){
3278
  global $sd_data;
3279
  $currentuserrole = array();
3280
 
3281
- if(!function_exists('wp_get_current_user')) {
3282
- require_once( ABSPATH . '/wp-includes/pluggable.php' );
3283
- }
3284
 
3285
  if( ( function_exists('is_user_logged_in') && is_user_logged_in() ) && function_exists('wp_get_current_user') ) {
3286
 
@@ -3324,10 +3325,10 @@ function saswp_post_type_capabilities(){
3324
 
3325
  $caplist = array();
3326
 
3327
- if(!function_exists('is_super_admin') || !function_exists('wp_get_current_user')) {
3328
- require_once( ABSPATH . '/wp-includes/capabilities.php' );
3329
- require_once( ABSPATH . '/wp-includes/pluggable.php' );
3330
- }
3331
 
3332
  if( function_exists('is_super_admin') && function_exists('wp_get_current_user') ){
3333
 
1821
  }
1822
 
1823
  function saswp_defaultSettings(){
1824
+
1825
+ // if(!function_exists('wp_get_current_user')) {
1826
+ // include(ABSPATH . "wp-includes/pluggable.php");
1827
+ // }
1828
  global $sd_data;
1829
 
1830
  $sd_data = get_option( 'sd_data', saswp_default_settings_array());
3279
  global $sd_data;
3280
  $currentuserrole = array();
3281
 
3282
+ // if(!function_exists('wp_get_current_user')) {
3283
+ // require_once( ABSPATH . '/wp-includes/pluggable.php' );
3284
+ // }
3285
 
3286
  if( ( function_exists('is_user_logged_in') && is_user_logged_in() ) && function_exists('wp_get_current_user') ) {
3287
 
3325
 
3326
  $caplist = array();
3327
 
3328
+ // if(!function_exists('is_super_admin') || !function_exists('wp_get_current_user')) {
3329
+ // require_once( ABSPATH . '/wp-includes/capabilities.php' );
3330
+ // require_once( ABSPATH . '/wp-includes/pluggable.php' );
3331
+ // }
3332
 
3333
  if( function_exists('is_super_admin') && function_exists('wp_get_current_user') ){
3334
 
admin_section/settings.php CHANGED
@@ -4768,10 +4768,10 @@ add_filter( 'option_page_capability_sd_data_group', 'saswp_option_page_capabilit
4768
 
4769
  function saswp_pre_update_settings($value, $old_value, $option){
4770
 
4771
- if(!function_exists('is_super_admin') || !function_exists('wp_get_current_user') ) {
4772
- require_once( ABSPATH . '/wp-includes/capabilities.php' );
4773
- require_once( ABSPATH . '/wp-includes/pluggable.php' );
4774
- }
4775
 
4776
  if( function_exists('is_super_admin') && function_exists('wp_get_current_user') ){
4777
 
4768
 
4769
  function saswp_pre_update_settings($value, $old_value, $option){
4770
 
4771
+ // if(!function_exists('is_super_admin') || !function_exists('wp_get_current_user') ) {
4772
+ // require_once( ABSPATH . '/wp-includes/capabilities.php' );
4773
+ // require_once( ABSPATH . '/wp-includes/pluggable.php' );
4774
+ // }
4775
 
4776
  if( function_exists('is_super_admin') && function_exists('wp_get_current_user') ){
4777
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO,
4
  Requires at least: 3.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6.20
7
- Stable tag: 1.9.101
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,7 +121,13 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
124
  = 1.9.101 (30 September 2022) =
 
125
  * Added: Option for turn off( hide) the ordered and unordered item list in FAQ #1698
126
  * Added: Option in adding date format for reviews like 12 days ago #1713
127
  * Added: Option to remove version number from source code #1715
4
  Requires at least: 3.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6.20
7
+ Stable tag: 1.9.101.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.9.101.1 (01 Oct 2022) =
125
+
126
+ * Fixed: PHP Fatal error: Uncaught Error: Undefined constant "SECURE_AUTH_COOKIE" in .../wp-includes/pluggable.php:928 #1749
127
+
128
+
129
  = 1.9.101 (30 September 2022) =
130
+
131
  * Added: Option for turn off( hide) the ordered and unordered item list in FAQ #1698
132
  * Added: Option in adding date format for reviews like 12 days ago #1713
133
  * Added: Option to remove version number from source code #1715
structured-data-for-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
- Version: 1.9.101
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
@@ -13,7 +13,7 @@ License: GPL2
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
- define('SASWP_VERSION', '1.9.101');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
2
  /*
3
  Plugin Name: Schema & Structured Data for WP & AMP
4
  Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
5
+ Version: 1.9.101.1
6
  Text Domain: schema-and-structured-data-for-wp
7
  Domain Path: /languages
8
  Author: Magazine3
13
  // Exit if accessed directly.
14
  if ( ! defined( 'ABSPATH' ) ) exit;
15
 
16
+ define('SASWP_VERSION', '1.9.101.1');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));