Remove Yoast SEO Comments - Version 3.0.3

Version Description

  • Fixes conflicts with Yoast SEO 5.7.1
Download this release

Release Info

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

Code changes from version 3.0.2 to 3.0.3

Files changed (2) hide show
  1. readme.txt +4 -1
  2. remove-yoast-seo-comments.php +5 -5
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: yoast seo, yoast, seo, remove comments, remove html, remove ads, remove debug code, lightweight
5
  Requires at least: 1.2.0
6
  Stable tag: 1.2.0
7
- Tested up to: 4.8
8
 
9
  Removes the Yoast SEO advertisement HTML comments from your front-end source code.
10
 
@@ -46,6 +46,9 @@ No, this plugin will not modify any of your Yoast SEO plugin files.
46
 
47
  == Changelog ==
48
 
 
 
 
49
  = 3.0.2 =
50
  * Limited the RYSC dashboard widget to admin only.
51
 
4
  Tags: yoast seo, yoast, seo, remove comments, remove html, remove ads, remove debug code, lightweight
5
  Requires at least: 1.2.0
6
  Stable tag: 1.2.0
7
+ Tested up to: 4.9
8
 
9
  Removes the Yoast SEO advertisement HTML comments from your front-end source code.
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 3.0.3 =
50
+ * Fixes conflicts with Yoast SEO 5.7.1
51
+
52
  = 3.0.2 =
53
  * Limited the RYSC dashboard widget to admin only.
54
 
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: 3.0.2
7
  * Author: Mitch
8
  * Author URI: https://profiles.wordpress.org/lowest
9
  * License: GPL-2.0+
@@ -30,7 +30,7 @@
30
  if ( ! defined( 'ABSPATH' ) ) { exit; }
31
 
32
  class RYSC {
33
- private $version = '3.0.2';
34
  private $debug_marker_removed = false;
35
  private $head_marker_removed = false;
36
 
@@ -49,7 +49,7 @@ class RYSC {
49
 
50
  if(class_exists( 'WPSEO_Frontend' ) && method_exists( 'WPSEO_Frontend', 'head' )) {
51
  remove_action( 'wp_head', array( WPSEO_Frontend::get_instance(), 'head' ) , 1);
52
- add_action( 'wp_head', array($this, 'rewrite'), 1);
53
  $this->head_marker_removed = true;
54
  }
55
 
@@ -91,7 +91,7 @@ class RYSC {
91
  echo '<div class="activity-block"><h3><span class="dashicons dashicons-admin-plugins"></span> Yoast SEO ' . WPSEO_VERSION . ' Compatibility Status: ' . $status . '</h3></div>';
92
  echo $content;
93
  if($show_supported) {
94
- echo '<p style="color:#808080"><span class="dashicons dashicons-lightbulb"></span> Want to downgrade? <a href="https://downloads.wordpress.org/plugin/wordpress-seo.4.9.zip" title="Download Yoast SEO 4.9">Yoast SEO 4.9</a> and earlier are tested and supported by RYSC.</p>';
95
  }
96
  }
97
 
@@ -117,4 +117,4 @@ class RYSC {
117
  }
118
  }
119
 
120
- $rysc = new RYSC;
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: 3.0.3
7
  * Author: Mitch
8
  * Author URI: https://profiles.wordpress.org/lowest
9
  * License: GPL-2.0+
30
  if ( ! defined( 'ABSPATH' ) ) { exit; }
31
 
32
  class RYSC {
33
+ private $version = '3.0.3';
34
  private $debug_marker_removed = false;
35
  private $head_marker_removed = false;
36
 
49
 
50
  if(class_exists( 'WPSEO_Frontend' ) && method_exists( 'WPSEO_Frontend', 'head' )) {
51
  remove_action( 'wp_head', array( WPSEO_Frontend::get_instance(), 'head' ) , 1);
52
+ if(WPSEO_VERSION < '5.8') add_action( 'wp_head', array($this, 'rewrite'), 1);
53
  $this->head_marker_removed = true;
54
  }
55
 
91
  echo '<div class="activity-block"><h3><span class="dashicons dashicons-admin-plugins"></span> Yoast SEO ' . WPSEO_VERSION . ' Compatibility Status: ' . $status . '</h3></div>';
92
  echo $content;
93
  if($show_supported) {
94
+ echo '<p style="color:#808080"><span class="dashicons dashicons-lightbulb"></span> Want to downgrade? <a href="https://downloads.wordpress.org/plugin/wordpress-seo.4.9.zip" title="Download Yoast SEO 5.7.1">Yoast SEO 5.7.1</a> and earlier are tested and supported by RYSC.</p>';
95
  }
96
  }
97
 
117
  }
118
  }
119
 
120
+ new RYSC;