Remove Yoast SEO Comments - Version 3.0.2

Version Description

  • Limited the RYSC dashboard widget to admin only.
Download this release

Release Info

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

Code changes from version 3.0.1 to 3.0.2

Files changed (2) hide show
  1. readme.txt +3 -0
  2. remove-yoast-seo-comments.php +3 -3
readme.txt CHANGED
@@ -46,6 +46,9 @@ No, this plugin will not modify any of your Yoast SEO plugin files.
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.
46
 
47
  == Changelog ==
48
 
49
+ = 3.0.2 =
50
+ * Limited the RYSC dashboard widget to admin only.
51
+
52
  = 3.0.1 =
53
  * Versioning added as a variable to the RYSC class.
54
  * Fixed a display error where the RYSC version was showing instead of the Yoast SEO version.
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.1
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';
34
  private $debug_marker_removed = false;
35
  private $head_marker_removed = false;
36
 
@@ -53,7 +53,7 @@ class RYSC {
53
  $this->head_marker_removed = true;
54
  }
55
 
56
- add_action( 'wp_dashboard_setup', array( $this, 'dash_widget' ) );
57
  }
58
 
59
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_links' ) );
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
  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
 
53
  $this->head_marker_removed = true;
54
  }
55
 
56
+ if(current_user_can('manage_options')) add_action( 'wp_dashboard_setup', array( $this, 'dash_widget' ) );
57
  }
58
 
59
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_links' ) );