Remove Yoast SEO Comments - Version 3.0.1

Version Description

  • Versioning added as a variable to the RYSC class.
  • Fixed a display error where the RYSC version was showing instead of the Yoast SEO version.
Download this release

Release Info

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

Code changes from version 3.0 to 3.0.1

Files changed (2) hide show
  1. readme.txt +5 -1
  2. remove-yoast-seo-comments.php +6 -7
readme.txt CHANGED
@@ -1,4 +1,4 @@
1
- === Remove Yoast SEO comments ===
2
  Contributors: lowest, tazotodua
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VYPRGME8QELC
4
  Tags: yoast seo, yoast, seo, remove comments, remove html, remove ads, remove debug code, lightweight
@@ -46,6 +46,10 @@ No, this plugin will not modify any of your Yoast SEO plugin files.
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  = 3.0 =
50
  * Cleaner, more lightweight and optimized coding.
51
  * New dashboard widget added.
1
+ === Remove Yoast SEO Comments ===
2
  Contributors: lowest, tazotodua
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VYPRGME8QELC
4
  Tags: yoast seo, yoast, seo, remove comments, remove html, remove ads, remove debug code, lightweight
46
 
47
  == Changelog ==
48
 
49
+ = 3.0.1 =
50
+ * Versioning added as a variable to the RYSC class.
51
+ * Fixed a display error where the RYSC version was showing instead of the Yoast SEO version.
52
+
53
  = 3.0 =
54
  * Cleaner, more lightweight and optimized coding.
55
  * New dashboard widget added.
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
7
  * Author: Mitch
8
  * Author URI: https://profiles.wordpress.org/lowest
9
  * License: GPL-2.0+
@@ -29,9 +29,8 @@
29
 
30
  if ( ! defined( 'ABSPATH' ) ) { exit; }
31
 
32
- if ( ! defined( 'RYSC_VERSION' ) ) { define( 'RYSC_VERSION', '3.0' ); }
33
-
34
  class RYSC {
 
35
  private $debug_marker_removed = false;
36
  private $head_marker_removed = false;
37
 
@@ -77,15 +76,15 @@ class RYSC {
77
  public function dash_widget_content() {
78
  if($this->operating_status() == 1) {
79
  $status = '<span style="color:#04B404;font-weight:bold">Fully supported</span>';
80
- $content = '<p>Version ' . WPSEO_VERSION . ' of Yoast SEO is fully supported by RYSC ' . RYSC_VERSION . '. The HTML comments have been removed from your front-end source code.</p>';
81
  $show_supported = false;
82
  } elseif($this->operating_status() == 2) {
83
  $status = '<span style="color:#FF8000;font-weight:bold">Not properly supported</span>';
84
- $content = '<p>Version ' . WPSEO_VERSION . ' of Yoast SEO is not properly supported by RYSC ' . RYSC_VERSION . '. Some functions are not working. Please downgrade or wait for a plugin update.</p>';
85
  $show_supported = true;
86
  } elseif($this->operating_status() == 3) {
87
  $status = '<span style="color:#DF0101;font-weight:bold">Not supported</span>';
88
- $content = '<p>Version ' . WPSEO_VERSION . ' of Yoast SEO is not supported by RYSC ' . RYSC_VERSION . '. Please downgrade or wait for a plugin update.</p>';
89
  $show_supported = true;
90
  }
91
 
@@ -118,4 +117,4 @@ class RYSC {
118
  }
119
  }
120
 
121
- $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.1
7
  * Author: Mitch
8
  * Author URI: https://profiles.wordpress.org/lowest
9
  * License: GPL-2.0+
29
 
30
  if ( ! defined( 'ABSPATH' ) ) { exit; }
31
 
 
 
32
  class RYSC {
33
+ private $version = '3.0';
34
  private $debug_marker_removed = false;
35
  private $head_marker_removed = false;
36
 
76
  public function dash_widget_content() {
77
  if($this->operating_status() == 1) {
78
  $status = '<span style="color:#04B404;font-weight:bold">Fully supported</span>';
79
+ $content = '<p>Version ' . WPSEO_VERSION . ' of Yoast SEO is fully supported by RYSC ' . $this->version . '. The HTML comments have been removed from your front-end source code.</p>';
80
  $show_supported = false;
81
  } elseif($this->operating_status() == 2) {
82
  $status = '<span style="color:#FF8000;font-weight:bold">Not properly supported</span>';
83
+ $content = '<p>Version ' . WPSEO_VERSION . ' of Yoast SEO is not properly supported by RYSC ' . $this->version . '. Some functions are not working. Please downgrade or wait for a plugin update.</p>';
84
  $show_supported = true;
85
  } elseif($this->operating_status() == 3) {
86
  $status = '<span style="color:#DF0101;font-weight:bold">Not supported</span>';
87
+ $content = '<p>Version ' . WPSEO_VERSION . ' of Yoast SEO is not supported by RYSC ' . $this->version . '. Please downgrade or wait for a plugin update.</p>';
88
  $show_supported = true;
89
  }
90
 
117
  }
118
  }
119
 
120
+ $rysc = new RYSC;