Version Description
(15 Sept 2021) =
- Fixed: Conflict with Impreza theme #1521
- Fixed: Conflict issue with content view plugin. #1501
- Fixed: PHP Notice: Undefined offset #1519
- Fixed: Issue with Imported Schema Settings #1522
- Added: Shortcode to render breadcrumbs. Use the shortcode [saswp-breadcrumbs] #1497
Download this release
Release Info
Developer | magazine3 |
Plugin | Schema & Structured Data for WP & AMP |
Version | 1.9.84 |
Comparing to | |
See all releases |
Code changes from version 1.9.83.1 to 1.9.84
- admin_section/common-function.php +2 -1
- admin_section/settings.php +5 -1
- admin_section/structure_admin.php +1 -1
- output/function.php +44 -0
- readme.txt +9 -1
- structured-data-for-wp.php +2 -2
admin_section/common-function.php
CHANGED
@@ -163,7 +163,8 @@ if ( ! defined('ABSPATH') ) exit;
|
|
163 |
|
164 |
update_option('sd_data', $saswp_sd_data);
|
165 |
}
|
166 |
-
//Saving settings data ends here
|
|
|
167 |
update_option('saswp-file-upload_url','');
|
168 |
|
169 |
}
|
163 |
|
164 |
update_option('sd_data', $saswp_sd_data);
|
165 |
}
|
166 |
+
//Saving settings data ends here
|
167 |
+
saswp_published();
|
168 |
update_option('saswp-file-upload_url','');
|
169 |
|
170 |
}
|
admin_section/settings.php
CHANGED
@@ -4398,7 +4398,11 @@ function saswp_dequeue_other_select2_on_saswp_screen(){
|
|
4398 |
|
4399 |
wp_dequeue_script( 'forminator-shared-ui' );
|
4400 |
wp_dequeue_script( 'select-two-min-js' );
|
4401 |
-
wp_dequeue_script( 'ppress-select2' );
|
|
|
|
|
|
|
|
|
4402 |
|
4403 |
}
|
4404 |
|
4398 |
|
4399 |
wp_dequeue_script( 'forminator-shared-ui' );
|
4400 |
wp_dequeue_script( 'select-two-min-js' );
|
4401 |
+
wp_dequeue_script( 'ppress-select2' );
|
4402 |
+
|
4403 |
+
//Conflict with Impreza theme
|
4404 |
+
wp_dequeue_script( 'usof-select2' );
|
4405 |
+
wp_deregister_script( 'usof-select2' );
|
4406 |
|
4407 |
}
|
4408 |
|
admin_section/structure_admin.php
CHANGED
@@ -1317,7 +1317,7 @@ function saswp_custom_breadcrumbs() {
|
|
1317 |
|
1318 |
$taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy );
|
1319 |
|
1320 |
-
if($taxonomy_terms){
|
1321 |
|
1322 |
$cat_id = $taxonomy_terms[0]->term_id;
|
1323 |
$cat_link = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);
|
1317 |
|
1318 |
$taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy );
|
1319 |
|
1320 |
+
if( isset($taxonomy_terms[0]) ){
|
1321 |
|
1322 |
$cat_id = $taxonomy_terms[0]->term_id;
|
1323 |
$cat_link = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);
|
output/function.php
CHANGED
@@ -3231,4 +3231,48 @@ function saswp_get_ampforwp_story_images(){
|
|
3231 |
|
3232 |
return $image_arr;
|
3233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3234 |
}
|
3231 |
|
3232 |
return $image_arr;
|
3233 |
|
3234 |
+
}
|
3235 |
+
|
3236 |
+
add_shortcode('saswp-breadcrumbs', 'saswp_render_breadcrumbs_html');
|
3237 |
+
|
3238 |
+
function saswp_render_breadcrumbs_html($attr){
|
3239 |
+
|
3240 |
+
global $sd_data;
|
3241 |
+
|
3242 |
+
$breadcrumbs = '';
|
3243 |
+
|
3244 |
+
if(!empty($sd_data['titles'])){
|
3245 |
+
|
3246 |
+
$breadcrumbs .= '<style>';
|
3247 |
+
|
3248 |
+
$breadcrumbs .= '.saswp-breadcrumbs-li{
|
3249 |
+
display: inline-block;
|
3250 |
+
list-style-type: none;
|
3251 |
+
font-size: 12px;
|
3252 |
+
text-transform: uppercase;
|
3253 |
+
margin-right: 5px;
|
3254 |
+
}
|
3255 |
+
.saswp-breadcrumbs-li a:after{
|
3256 |
+
content: "\25BA";
|
3257 |
+
font-family: "icomoon";
|
3258 |
+
font-size: 12px;
|
3259 |
+
display: inline-block;
|
3260 |
+
color: #bdbdbd;
|
3261 |
+
padding-left: 5px;
|
3262 |
+
position: relative;
|
3263 |
+
top: 1px;
|
3264 |
+
}
|
3265 |
+
';
|
3266 |
+
$breadcrumbs .= '</style>';
|
3267 |
+
$breadcrumbs .= '<ul class="saswp-breadcrumbs-ul">';
|
3268 |
+
|
3269 |
+
foreach ($sd_data['titles'] as $key => $value) {
|
3270 |
+
$breadcrumbs .= '<li class="saswp-breadcrumbs-li" ><a href="'.esc_url($sd_data['links'][$key]).'">'.esc_html($value).'</a></li>';
|
3271 |
+
}
|
3272 |
+
|
3273 |
+
$breadcrumbs .= '</ul>';
|
3274 |
+
|
3275 |
+
}
|
3276 |
+
|
3277 |
+
return $breadcrumbs;
|
3278 |
}
|
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.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -120,6 +120,14 @@ You can contact us from [here](http://structured-data-for-wp.com/contact-us/)
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
|
124 |
= 1.9.83.1 (31 Aug 2021) =
|
125 |
|
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.84
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 1.9.84 (15 Sept 2021) =
|
124 |
+
|
125 |
+
* Fixed: Conflict with Impreza theme #1521
|
126 |
+
* Fixed: Conflict issue with content view plugin. #1501
|
127 |
+
* Fixed: PHP Notice: Undefined offset #1519
|
128 |
+
* Fixed: Issue with Imported Schema Settings #1522
|
129 |
+
* Added: Shortcode to render breadcrumbs. Use the shortcode [saswp-breadcrumbs] #1497
|
130 |
+
|
131 |
|
132 |
= 1.9.83.1 (31 Aug 2021) =
|
133 |
|
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.
|
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.
|
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.84
|
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.84');
|
17 |
define('SASWP_DIR_NAME_FILE', __FILE__ );
|
18 |
define('SASWP_DIR_NAME', dirname( __FILE__ ));
|
19 |
define('SASWP_DIR_URI', plugin_dir_url(__FILE__));
|