SEOPress - Version 3.3.11

Version Description

  • NEW Add seopress_category_rewrite_rules hook to filter rewrite rules for category taxonomy
  • INFO Content analysis is now working with draft / pending review / published posts
  • FIX Date Picker CSS conflict
  • FIX WP Editor in term description
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 3.3.11
Comparing to
See all releases

Code changes from version 3.3.10 to 3.3.11

inc/admin/ajax.php CHANGED
@@ -64,10 +64,14 @@ function seopress_do_real_preview() {
64
'timeout' => 30
65
);
66
67
$args = apply_filters('seopress_real_preview_remote', $args);
68
69
if ($seopress_origin =='post') { //Default: post type
70
- $response = wp_remote_get(get_permalink((int)$seopress_get_the_id), $args);
71
} else { //Term taxonomy
72
$response = wp_remote_get(get_term_link((int)$seopress_get_the_id, $seopress_tax_name), $args);
73
}
64
'timeout' => 30
65
);
66
67
+ if (isset($cookies) && !empty($cookies)) {
68
+ $args['cookies'] = $cookies;
69
+ }
70
+
71
$args = apply_filters('seopress_real_preview_remote', $args);
72
73
if ($seopress_origin =='post') { //Default: post type
74
+ $response = wp_remote_get(get_preview_post_link((int)$seopress_get_the_id), $args);
75
} else { //Term taxonomy
76
$response = wp_remote_get(get_term_link((int)$seopress_get_the_id, $seopress_tax_name), $args);
77
}
inc/functions/options-advanced-admin.php CHANGED
@@ -727,7 +727,7 @@ if (seopress_advanced_advanced_tax_desc_editor_option() !='' && current_user_can
727
remove_filter( 'term_description', 'wp_kses_data' );
728
729
//Disallow HTML Tags
730
- if ( ! current_user_can( 'unfiltered_html' ) ) {
731
add_filter( 'pre_term_description', 'wp_kses_post' );
732
add_filter( 'term_description', 'wp_kses_post' );
733
}
@@ -739,45 +739,46 @@ if (seopress_advanced_advanced_tax_desc_editor_option() !='' && current_user_can
739
add_filter( 'term_description', 'wpautop' );
740
741
}
742
- function seopress_tax_desc_wp_editor($tag) {
743
- global $pagenow;
744
- if ( $pagenow =='term.php' || $pagenow =='edit-tags.php') {
745
-
746
- $content = '';
747
-
748
- if ($pagenow == 'term.php') {
749
- $editor_id = 'description';
750
- } elseif($pagenow == 'edit-tags.php') {
751
- $editor_id = 'tag-description';
752
- }
753
-
754
- ?>
755
-
756
- <tr class="form-field term-description-wrap">
757
- <th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th>
758
- <td>
759
- <?php
760
- $settings = array(
761
- 'textarea_name' => 'description',
762
- 'textarea_rows' => 10,
763
- );
764
- wp_editor( htmlspecialchars_decode( $tag->description ), 'html-tag-description', $settings );
765
- ?>
766
- <p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p>
767
- </td>
768
- <script type="text/javascript">
769
- // Remove default description field
770
- jQuery('textarea#description').closest('.form-field').remove();
771
- </script>
772
- </tr>
773
-
774
- <?php
775
}
776
}
777
- $seopress_get_taxonomies = seopress_get_taxonomies();
778
- foreach ($seopress_get_taxonomies as $key => $value) {
779
- add_action($key.'_edit_form_fields', 'seopress_tax_desc_wp_editor', 9, 1);
780
- }
781
}
782
- add_action('init', 'seopress_tax_desc_wp_editor_init');
783
}
727
remove_filter( 'term_description', 'wp_kses_data' );
728
729
//Disallow HTML Tags
730
+ if ( !current_user_can( 'unfiltered_html' ) ) {
731
add_filter( 'pre_term_description', 'wp_kses_post' );
732
add_filter( 'term_description', 'wp_kses_post' );
733
}
739
add_filter( 'term_description', 'wpautop' );
740
741
}
742
+ }
743
+ add_action('init', 'seopress_tax_desc_wp_editor_init', 100);
744
+
745
+ function seopress_tax_desc_wp_editor($tag) {
746
+ global $pagenow;
747
+ if ( $pagenow =='term.php' || $pagenow =='edit-tags.php') {
748
+
749
+ $content = '';
750
+
751
+ if ($pagenow == 'term.php') {
752
+ $editor_id = 'description';
753
+ } elseif($pagenow == 'edit-tags.php') {
754
+ $editor_id = 'tag-description';
755
}
756
+
757
+ ?>
758
+
759
+ <tr class="form-field term-description-wrap">
760
+ <th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th>
761
+ <td>
762
+ <?php
763
+ $settings = array(
764
+ 'textarea_name' => 'description',
765
+ 'textarea_rows' => 10,
766
+ );
767
+ wp_editor( htmlspecialchars_decode( $tag->description ), 'html-tag-description', $settings );
768
+ ?>
769
+ <p class="description"><?php _e( 'The description is not prominent by default; however, some themes may show it.' ); ?></p>
770
+ </td>
771
+ <script type="text/javascript">
772
+ // Remove default description field
773
+ jQuery('textarea#description').closest('.form-field').remove();
774
+ </script>
775
+ </tr>
776
+
777
+ <?php
778
}
779
}
780
+ $seopress_get_taxonomies = seopress_get_taxonomies();
781
+ foreach ($seopress_get_taxonomies as $key => $value) {
782
+ add_action($key.'_edit_form_fields', 'seopress_tax_desc_wp_editor', 9, 1);
783
+ }
784
}
inc/functions/options.php CHANGED
@@ -364,6 +364,7 @@ if (seopress_get_toggle_advanced_option() =='1') {
364
}
365
}
366
}
367
return $rules;
368
}
369
add_action('template_redirect', 'seopress_category_redirect', 1);
364
}
365
}
366
}
367
+ $rules = apply_filters('seopress_category_rewrite_rules', $rules);
368
return $rules;
369
}
370
add_action('template_redirect', 'seopress_category_redirect', 1);
inc/functions/sitemap/template-xml-sitemaps-xsl.php CHANGED
@@ -146,5 +146,5 @@ function seopress_xml_sitemap_index_xsl() {
146
$seopress_sitemaps_xsl .='</xsl:stylesheet>';
147
148
return $seopress_sitemaps_xsl;
149
- }
150
echo seopress_xml_sitemap_index_xsl();
146
$seopress_sitemaps_xsl .='</xsl:stylesheet>';
147
148
return $seopress_sitemaps_xsl;
149
+ }
150
echo seopress_xml_sitemap_index_xsl();
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
6
Requires at least: 4.4+
7
Tested up to: 5.1
8
Requires PHP: 5.4
9
- Stable tag: 3.3.10
10
License: GPLv2 or later
11
License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
@@ -162,6 +162,11 @@ Subscribe on <a href="https://www.seopress.org/" target="_blank">seopress.org</a
162
44. Structured Data Types metaboxe in post, page, custom post type (PRO)
163
164
== Changelog ==
165
= 3.3.10 =
166
* NEW Content analysis for all page builders / themes
167
* NEW Add Turkish language
6
Requires at least: 4.4+
7
Tested up to: 5.1
8
Requires PHP: 5.4
9
+ Stable tag: 3.3.11
10
License: GPLv2 or later
11
License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
162
44. Structured Data Types metaboxe in post, page, custom post type (PRO)
163
164
== Changelog ==
165
+ = 3.3.11 =
166
+ * NEW Add seopress_category_rewrite_rules hook to filter rewrite rules for category taxonomy
167
+ * INFO Content analysis is now working with draft / pending review / published posts
168
+ * FIX Date Picker CSS conflict
169
+ * FIX WP Editor in term description
170
= 3.3.10 =
171
* NEW Content analysis for all page builders / themes
172
* NEW Add Turkish language
seopress.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: SEOPress
4
Plugin URI: https://www.seopress.org/
5
Description: The best plugin for SEO.
6
- Version: 3.3.10
7
Author: Benjamin Denis
8
Author URI: https://www.seopress.org/
9
License: GPLv2
@@ -53,7 +53,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
53
///////////////////////////////////////////////////////////////////////////////////////////////////
54
//Define
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56
- define( 'SEOPRESS_VERSION', '3.3.10' );
57
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
59
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -471,7 +471,7 @@ function seopress_xml_sitemap_taxonomies_list_option() {
471
if (seopress_xml_sitemap_general_enable_option() =='1' && seopress_get_toggle_xml_sitemap_option() =='1') {
472
add_action( 'init', 'seopress_xml_sitemap_rewrite' );
473
add_action( 'query_vars', 'seopress_xml_sitemap_query_vars' );
474
- add_action( 'template_include', 'seopress_xml_sitemap_change_template', 9999 );
475
add_action( 'template_redirect', 'seopress_xml_sitemap_shortcut', 1);
476
477
//WPML compatibility
3
Plugin Name: SEOPress
4
Plugin URI: https://www.seopress.org/
5
Description: The best plugin for SEO.
6
+ Version: 3.3.11
7
Author: Benjamin Denis
8
Author URI: https://www.seopress.org/
9
License: GPLv2
53
///////////////////////////////////////////////////////////////////////////////////////////////////
54
//Define
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56
+ define( 'SEOPRESS_VERSION', '3.3.11' );
57
define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
59
///////////////////////////////////////////////////////////////////////////////////////////////////
471
if (seopress_xml_sitemap_general_enable_option() =='1' && seopress_get_toggle_xml_sitemap_option() =='1') {
472
add_action( 'init', 'seopress_xml_sitemap_rewrite' );
473
add_action( 'query_vars', 'seopress_xml_sitemap_query_vars' );
474
+ add_action( 'template_redirect', 'seopress_xml_sitemap_change_template', 1 );
475
add_action( 'template_redirect', 'seopress_xml_sitemap_shortcut', 1);
476
477
//WPML compatibility