Schema & Structured Data for WP & AMP - Version 1.9.86.1

Version Description

(20 Oct 2021) =

  • Fixed: Empty FAQPage schema #1549
Download this release

Release Info

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

Code changes from version 1.9.86 to 1.9.86.1

Files changed (3) hide show
  1. output/tinymce.php +7 -5
  2. readme.txt +6 -1
  3. structured-data-for-wp.php +2 -2
output/tinymce.php CHANGED
@@ -134,16 +134,17 @@ function saswp_tinymce_how_to_schema(){
134
  function saswp_tinymce_faq_schema(){
135
 
136
  global $saswp_tiny_multi_faq, $sd_data;
137
- $input1 = array();
138
-
139
- $input1['@context'] = saswp_context_url();
140
- $input1['@type'] = 'FAQPage';
141
- $input1['@id'] = trailingslashit(saswp_get_permalink()).'#FAQPage';
142
 
 
 
143
  $faq_question_arr = array();
144
 
145
  if(!empty($saswp_tiny_multi_faq['elements'])){
146
 
 
 
 
 
147
  foreach($saswp_tiny_multi_faq['elements'] as $val){
148
 
149
  $supply_data = array();
@@ -165,6 +166,7 @@ function saswp_tinymce_faq_schema(){
165
  $faq_question_arr[] = $supply_data;
166
  }
167
  $input1['mainEntity'] = $faq_question_arr;
 
168
  }
169
 
170
  return apply_filters('saswp_modify_faq_block_schema_output', $input1 );
134
  function saswp_tinymce_faq_schema(){
135
 
136
  global $saswp_tiny_multi_faq, $sd_data;
 
 
 
 
 
137
 
138
+ $input1 = array();
139
+
140
  $faq_question_arr = array();
141
 
142
  if(!empty($saswp_tiny_multi_faq['elements'])){
143
 
144
+ $input1['@context'] = saswp_context_url();
145
+ $input1['@type'] = 'FAQPage';
146
+ $input1['@id'] = trailingslashit(saswp_get_permalink()).'#FAQPage';
147
+
148
  foreach($saswp_tiny_multi_faq['elements'] as $val){
149
 
150
  $supply_data = array();
166
  $faq_question_arr[] = $supply_data;
167
  }
168
  $input1['mainEntity'] = $faq_question_arr;
169
+
170
  }
171
 
172
  return apply_filters('saswp_modify_faq_block_schema_output', $input1 );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: magazine3
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
- Stable tag: 1.9.86
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -121,6 +121,11 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
121
  == Changelog ==
122
 
123
 
 
 
 
 
 
124
  = 1.9.86 (18 Oct 2021) =
125
 
126
  * Fixed: Undefined index _mbdb_isbn in other-schema.php #1545
3
  Tags: Schema, Structured Data, Google Snippets, Rich Snippets, Schema.org, SEO, AMP
4
  Requires at least: 3.0
5
  Tested up to: 5.8
6
+ Stable tag: 1.9.86.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
121
  == Changelog ==
122
 
123
 
124
+ = 1.9.86.1 (20 Oct 2021) =
125
+
126
+ * Fixed: Empty FAQPage schema #1549
127
+
128
+
129
  = 1.9.86 (18 Oct 2021) =
130
 
131
  * Fixed: Undefined index _mbdb_isbn in other-schema.php #1545
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.86
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.86');
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.86.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.86.1');
17
  define('SASWP_DIR_NAME_FILE', __FILE__ );
18
  define('SASWP_DIR_NAME', dirname( __FILE__ ));
19
  define('SASWP_DIR_URI', plugin_dir_url(__FILE__));