Remove Yoast SEO Comments - Version 2.0.4

Version Description

  • Fixes an issue regarding XML pages buffering
Download this release

Release Info

Developer lowest
Plugin Icon wp plugin Remove Yoast SEO Comments
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

Files changed (2) hide show
  1. readme.txt +7 -2
  2. remove-yoast-seo-comments.php +2 -2
readme.txt CHANGED
@@ -14,7 +14,9 @@ A light-weight plugin which will remove the advertisement HTML comments coming f
14
 
15
  `<!-- This site is optimized with the Yoast SEO plugin -->`
16
 
17
- This is a must-have plugin if you have Yoast SEO or Yoast SEO Premium installed.
 
 
18
 
19
  = Note: =
20
  This plugin requires [Yoast SEO](http://wordpress.org/plugins/wordpress-seo/).
@@ -36,7 +38,7 @@ Yes, they will stay removed as long as Yoast SEO doesn't change its coding layou
36
 
37
  = Does this plugin add any configuration options? =
38
 
39
- No, activate the plugin and you are done! This plugin will not add any extra tables or such to your database.
40
 
41
  = Will this plugin modify any of my Yoast SEO plugin files? =
42
 
@@ -48,6 +50,9 @@ In most cases happens when Yoast SEO changes their coding layout. Please be pati
48
 
49
  == Changelog ==
50
 
 
 
 
51
  = 2.0.3 =
52
  * Removes Yoast SEO comments from XML pages generated by Yoast SEO.
53
 
14
 
15
  `<!-- This site is optimized with the Yoast SEO plugin -->`
16
 
17
+ RYSC also removes the HTML comments from XML pages generated by Yoast SEO.
18
+
19
+ This is a must-have plugin if you have Yoast SEO installed.
20
 
21
  = Note: =
22
  This plugin requires [Yoast SEO](http://wordpress.org/plugins/wordpress-seo/).
38
 
39
  = Does this plugin add any configuration options? =
40
 
41
+ No, activate the plugin and you are done! The Yoast SEO have now been removed from your source code.
42
 
43
  = Will this plugin modify any of my Yoast SEO plugin files? =
44
 
50
 
51
  == Changelog ==
52
 
53
+ = 2.0.4 =
54
+ * Fixes an issue regarding XML pages buffering
55
+
56
  = 2.0.3 =
57
  * Removes Yoast SEO comments from XML pages generated by Yoast SEO.
58
 
remove-yoast-seo-comments.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Remove Yoast SEO comments
4
  * Plugin URI: https://wordpress.org/plugins/remove-yoast-seo-comments/
5
  * Description: Removes the Yoast SEO advertisement HTML comments from your front-end source code.
6
- * Version: 2.0.3
7
  * Author: Mitch
8
  * Author URI: https://profiles.wordpress.org/lowest
9
  * License: GPL-2.0+
@@ -75,7 +75,7 @@ function rysc_xml_parser() {
75
  $ext = pathinfo($_SERVER['REQUEST_URI'], PATHINFO_EXTENSION);
76
 
77
  if($ext == 'xml') {
78
- $flush = ob_end_flush();
79
 
80
  ob_start(function( $buffer ) {
81
  return preg_replace( '/\n?<.*?yoast.*?>/mi', '', $buffer ) . $flush;
3
  * Plugin Name: Remove Yoast SEO comments
4
  * Plugin URI: https://wordpress.org/plugins/remove-yoast-seo-comments/
5
  * Description: Removes the Yoast SEO advertisement HTML comments from your front-end source code.
6
+ * Version: 2.0.4
7
  * Author: Mitch
8
  * Author URI: https://profiles.wordpress.org/lowest
9
  * License: GPL-2.0+
75
  $ext = pathinfo($_SERVER['REQUEST_URI'], PATHINFO_EXTENSION);
76
 
77
  if($ext == 'xml') {
78
+ $flush = ob_get_contents() ? ob_end_clean() : '';
79
 
80
  ob_start(function( $buffer ) {
81
  return preg_replace( '/\n?<.*?yoast.*?>/mi', '', $buffer ) . $flush;