SEOPress - Version 3.8.2.3

Version Description

  • NEW 'seopress_ob_end_flush_all' hook to activate on demand wp_ob_end_flush_all for sitemaps (https://www.seopress.org/support/hooks/activate-wp_ob_end_flush_all-for-sitemaps/)
  • FIX sitemaps
Download this release

Release Info

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

Code changes from version 3.8.2.2 to 3.8.2.3

Files changed (2) hide show
  1. readme.txt +4 -1
  2. seopress.php +13 -4
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
6
  Requires at least: 4.7+
7
  Tested up to: 5.3
8
  Requires PHP: 5.6
9
- Stable tag: 3.8.2.2
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -222,6 +222,9 @@ You're theme is probably using a deprecated function to handle the title. <a hre
222
  7. Installation Wizard
223
 
224
  == Changelog ==
 
 
 
225
  = 3.8.2.2 =
226
  * FIX Import tool (extension not valid error)
227
  * FIX Valid From Date / Time for automatic Event schema (PRO)
6
  Requires at least: 4.7+
7
  Tested up to: 5.3
8
  Requires PHP: 5.6
9
+ Stable tag: 3.8.2.3
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
222
  7. Installation Wizard
223
 
224
  == Changelog ==
225
+ = 3.8.2.3 =
226
+ * NEW 'seopress_ob_end_flush_all' hook to activate on demand wp_ob_end_flush_all for sitemaps (https://www.seopress.org/support/hooks/activate-wp_ob_end_flush_all-for-sitemaps/)
227
+ * FIX sitemaps
228
  = 3.8.2.2 =
229
  * FIX Import tool (extension not valid error)
230
  * FIX Valid From Date / Time for automatic Event schema (PRO)
seopress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
- Version: 3.8.2.2
7
  Author: SEOPress
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
@@ -54,7 +54,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
54
  ///////////////////////////////////////////////////////////////////////////////////////////////////
55
  //Define
56
  ///////////////////////////////////////////////////////////////////////////////////////////////////
57
- define( 'SEOPRESS_VERSION', '3.8.2.2' );
58
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
59
 
60
  ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -299,7 +299,8 @@ function seopress_admin_body_class( $classes ) {
299
  'seopress-import-export' => true,
300
  'seopress-pro-page' => true,
301
  'seopress-bot-batch' => true,
302
- 'seopress-license' => true
 
303
  ];
304
  if ( isset( $_pages[ $_GET['page'] ] ) ) {
305
  $classes .= " seopress-styles ";
@@ -380,6 +381,7 @@ if ((isset($_GET['page']) && (
380
  || $_GET['page'] == 'seopress-pro-page'
381
  || $_GET['page'] == 'seopress-import-export'
382
  || $_GET['page'] == 'seopress-bot-batch'
 
383
  || $_GET['page'] == 'seopress-license'))
384
  || (isset($_GET['post_type']) && (
385
  $_GET['post_type'] == 'seopress_404'
@@ -755,7 +757,14 @@ if (seopress_xml_sitemap_general_enable_option() =='1' && seopress_get_toggle_op
755
  }
756
  }
757
  if ( isset( $seopress_sitemap_file ) && file_exists( plugin_dir_path( __FILE__ ) . 'inc/functions/sitemap/' . $seopress_sitemap_file ) ) {
758
- wp_ob_end_flush_all();
 
 
 
 
 
 
 
759
  include( plugin_dir_path( __FILE__ ) . 'inc/functions/sitemap/' . $seopress_sitemap_file );
760
  exit();
761
  }
3
  Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
+ Version: 3.8.2.3
7
  Author: SEOPress
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
54
  ///////////////////////////////////////////////////////////////////////////////////////////////////
55
  //Define
56
  ///////////////////////////////////////////////////////////////////////////////////////////////////
57
+ define( 'SEOPRESS_VERSION', '3.8.2.3' );
58
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
59
 
60
  ///////////////////////////////////////////////////////////////////////////////////////////////////
299
  'seopress-import-export' => true,
300
  'seopress-pro-page' => true,
301
  'seopress-bot-batch' => true,
302
+ 'seopress-license' => true,
303
+ 'seopress-insights' => true
304
  ];
305
  if ( isset( $_pages[ $_GET['page'] ] ) ) {
306
  $classes .= " seopress-styles ";
381
  || $_GET['page'] == 'seopress-pro-page'
382
  || $_GET['page'] == 'seopress-import-export'
383
  || $_GET['page'] == 'seopress-bot-batch'
384
+ || $_GET['page'] == 'seopress-insights'
385
  || $_GET['page'] == 'seopress-license'))
386
  || (isset($_GET['post_type']) && (
387
  $_GET['post_type'] == 'seopress_404'
757
  }
758
  }
759
  if ( isset( $seopress_sitemap_file ) && file_exists( plugin_dir_path( __FILE__ ) . 'inc/functions/sitemap/' . $seopress_sitemap_file ) ) {
760
+ $return_true ='';
761
+ $return_true = apply_filters( 'seopress_ob_end_flush_all', $return_true );
762
+
763
+ if (has_filter('seopress_ob_end_flush_all') && $return_true == true) {
764
+ wp_ob_end_flush_all();
765
+ die();
766
+ }
767
+
768
  include( plugin_dir_path( __FILE__ ) . 'inc/functions/sitemap/' . $seopress_sitemap_file );
769
  exit();
770
  }