Disable Comments - Version 1.0.18

Version Description

  • Fixed Menu Issue
Download this release

Release Info

Developer rbplugins
Plugin Icon 128x128 Disable Comments
Version 1.0.18
Comparing to
See all releases

Code changes from version 1.0.17 to 1.0.18

class_rb_disable-comments.php CHANGED
@@ -134,8 +134,8 @@ class Rbs_Disable_Comments {
134
 
135
 
136
  private function settings_page_url() {
137
- //return add_query_arg( 'page', 'rb_disable_comments_settings', admin_url( 'options-general.php' ) );
138
- return add_query_arg('page', 'rb_disable_comments_settings', admin_url('admin.php'));
139
  }
140
 
141
 
@@ -225,15 +225,15 @@ class Rbs_Disable_Comments {
225
 
226
  public function settingsMenu()
227
  {
228
- $menu_exits = menu_page_url( 'rb_plugins_settings', false );
229
  if(!$menu_exits){
230
  $title_plugins = __('RB Plugins', 'disable-right-click-rb');
231
  add_menu_page( $title_plugins, $title_plugins, null, 'rb_plugins_settings', array($this, 'pluginsListPage'), 'dashicons-rest-api', 20);
232
  add_action('admin_head', array($this, 'addAdminCss'));
233
- }
234
 
235
- $title = __('Disable Comments', 'disable-comments-rb');
236
- add_submenu_page('rb_plugins_settings', $title, $title, 'manage_options', 'rb_disable_comments_settings', array($this, 'options'));
237
  }
238
 
239
 
@@ -249,7 +249,7 @@ class Rbs_Disable_Comments {
249
 
250
 
251
  public function options() {
252
- include( RB_DISABLE_COMMENTS_PATH .'information.php');
253
  include( RB_DISABLE_COMMENTS_PATH .'options.php');
254
  }
255
 
134
 
135
 
136
  private function settings_page_url() {
137
+ return add_query_arg( 'page', 'rb_disable_comments_settings', admin_url( 'options-general.php' ) );
138
+ //return add_query_arg('page', 'rb_disable_comments_settings', admin_url('admin.php'));
139
  }
140
 
141
 
225
 
226
  public function settingsMenu()
227
  {
228
+ /*$menu_exits = menu_page_url( 'rb_plugins_settings', false );
229
  if(!$menu_exits){
230
  $title_plugins = __('RB Plugins', 'disable-right-click-rb');
231
  add_menu_page( $title_plugins, $title_plugins, null, 'rb_plugins_settings', array($this, 'pluginsListPage'), 'dashicons-rest-api', 20);
232
  add_action('admin_head', array($this, 'addAdminCss'));
233
+ }*/
234
 
235
+ $title = __('Disable Comments RB', 'disable-comments-rb');
236
+ add_submenu_page('options-general.php', $title, $title, 'manage_options', 'rb_disable_comments_settings', array($this, 'options'));
237
  }
238
 
239
 
249
 
250
 
251
  public function options() {
252
+ //include( RB_DISABLE_COMMENTS_PATH .'information.php');
253
  include( RB_DISABLE_COMMENTS_PATH .'options.php');
254
  }
255
 
disable-comments-rb.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Disable Comments RB
4
  Plugin URI: https://robosoft.co/wordpress-plugins/disable-comments
5
  Description: Easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
6
- Version: 1.0.17
7
  Author: rbPlugins
8
  Author URI: https://robosoft.co/wordpress-plugins/disable-comments
9
  License: GPL2
@@ -15,7 +15,7 @@ if (!defined('WPINC') || !defined("ABSPATH")) {
15
  die();
16
  }
17
  define("RB_DISABLE_COMMENTS_PATH", plugin_dir_path(__FILE__));
18
- define("RB_DISABLE_COMMENTS_VERSION", '1.0.17');
19
 
20
  include_once(RB_DISABLE_COMMENTS_PATH .'class_rb_disable-comments.php');
21
 
3
  Plugin Name: Disable Comments RB
4
  Plugin URI: https://robosoft.co/wordpress-plugins/disable-comments
5
  Description: Easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
6
+ Version: 1.0.18
7
  Author: rbPlugins
8
  Author URI: https://robosoft.co/wordpress-plugins/disable-comments
9
  License: GPL2
15
  die();
16
  }
17
  define("RB_DISABLE_COMMENTS_PATH", plugin_dir_path(__FILE__));
18
+ define("RB_DISABLE_COMMENTS_VERSION", '1.0.18');
19
 
20
  include_once(RB_DISABLE_COMMENTS_PATH .'class_rb_disable-comments.php');
21
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: rbplugins
3
  Tags: disable comments, comments, disable
4
  Requires at least: 3.1
5
  Tested up to: 5.9
6
- Stable tag: 1.0.17
7
  License: GPLv2 or later
8
 
9
  Disable Comments - easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
@@ -61,6 +61,9 @@ This is could be a reason of some conflict. If you have some custom theme. Theme
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 1.0.17 =
65
  * Compatibility with Wordpress 5.9
66
 
3
  Tags: disable comments, comments, disable
4
  Requires at least: 3.1
5
  Tested up to: 5.9
6
+ Stable tag: 1.0.18
7
  License: GPLv2 or later
8
 
9
  Disable Comments - easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
61
 
62
  == Changelog ==
63
 
64
+ = 1.0.18 =
65
+ * Fixed Menu Issue
66
+
67
  = 1.0.17 =
68
  * Compatibility with Wordpress 5.9
69