Disable Comments - Version 1.0.5

Version Description

  • Files Disable Comments plugin update.
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

class_disable-comments-rb.php → class_rb_disable-comments.php RENAMED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  * RB Disable Comments
4
- * Version: 1.0.1 - 47271
5
  * Author: RBS
6
- * Date: Tue, 06 Jun 2017 14:06:16 GMT
7
  */
8
 
9
  if( !defined('WPINC') || !defined("ABSPATH") ){
@@ -13,11 +13,19 @@ if( !defined('WPINC') || !defined("ABSPATH") ){
13
 
14
  class Robo_Disable_Comments {
15
 
 
 
16
  private $options;
17
  private $options_name = 'rb_disable_comments';
18
  private $modified_types = array();
19
 
20
-
 
 
 
 
 
 
21
  public function __construct() {
22
  $this->options = get_option( $this->options_name , array() );
23
  $this->hooks();
1
  <?php
2
  /*
3
  * RB Disable Comments
4
+ * Version: 1.0.5 - 78233
5
  * Author: RBS
6
+ * Date: Thu, 24 Aug 2017 12:11:29 GMT
7
  */
8
 
9
  if( !defined('WPINC') || !defined("ABSPATH") ){
13
 
14
  class Robo_Disable_Comments {
15
 
16
+ private static $instance = null;
17
+
18
  private $options;
19
  private $options_name = 'rb_disable_comments';
20
  private $modified_types = array();
21
 
22
+ public static function get_instance() {
23
+ if ( is_null( self::$instance ) ) {
24
+ self::$instance = new self;
25
+ }
26
+ return self::$instance;
27
+ }
28
+
29
  public function __construct() {
30
  $this->options = get_option( $this->options_name , array() );
31
  $this->hooks();
disable-comments-rb.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /*
3
- Plugin Name: Disable Comments
4
  Plugin URI: https://robosoft.co/wordpress-plugins/disable-comments
5
- Description: 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.
6
- Version: 1.0.4
7
- Author: rbplugins
8
  Author URI: https://robosoft.co/wordpress-plugins/disable-comments
9
  License: GPL2
10
  Text Domain: disable-comments-rb
@@ -14,8 +14,10 @@ Domain Path: /languages/
14
  if( !defined('WPINC') || !defined("ABSPATH") ) die();
15
 
16
  define("RB_DISABLE_COMMENTS_PATH", plugin_dir_path( __FILE__ ) );
17
- define("RB_DISABLE_COMMENTS_VERSION", '1.0.4' );
18
 
19
- include_once( RB_DISABLE_COMMENTS_PATH .'class_disable-comments-rb.php');
20
 
21
- $rb_DisableComments = new Robo_Disable_Comments();
 
 
1
  <?php
2
  /*
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.5
7
+ Author: rbPlugins
8
  Author URI: https://robosoft.co/wordpress-plugins/disable-comments
9
  License: GPL2
10
  Text Domain: disable-comments-rb
14
  if( !defined('WPINC') || !defined("ABSPATH") ) die();
15
 
16
  define("RB_DISABLE_COMMENTS_PATH", plugin_dir_path( __FILE__ ) );
17
+ define("RB_DISABLE_COMMENTS_VERSION", '1.0.5' );
18
 
19
+ include_once( RB_DISABLE_COMMENTS_PATH .'class_rb_disable-comments.php');
20
 
21
+ //$rb_DisableComments = new Robo_Disable_Comments();
22
+
23
+ Robo_Disable_Comments::get_instance();
options.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  * RB Disable Comments
4
- * Version: 1.0.1 - 47271
5
  * Author: RBS
6
- * Date: Tue, 06 Jun 2017 14:06:16 GMT
7
  */
8
 
9
  if( !defined('WPINC') || !defined("ABSPATH") ){
1
  <?php
2
  /*
3
  * RB Disable Comments
4
+ * Version: 1.0.5 - 78233
5
  * Author: RBS
6
+ * Date: Thu, 24 Aug 2017 12:11:29 GMT
7
  */
8
 
9
  if( !defined('WPINC') || !defined("ABSPATH") ){
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: rbplugins
3
  Tags: disable comments, comments, disable
4
  Requires at least: 3.1
5
- Tested up to: 4.8
6
- Stable tag: 1.0.4
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.
@@ -49,6 +49,11 @@ You don't need this plugin.
49
 
50
  Go to the edit page for the post you want to disable comments on. Scroll down to the "Discussion" box, where you will find the comment options for that post. If you don't see a "Discussion" box, then click on "Screen Options" at the top of your screen, and make sure the "Discussion" checkbox is checked.
51
 
 
 
 
 
 
52
  == Screenshots ==
53
 
54
  1. Disable Comments plugin - options screen of the Disable Comments RB
@@ -56,6 +61,9 @@ Go to the edit page for the post you want to disable comments on. Scroll down to
56
 
57
  == Changelog ==
58
 
 
 
 
59
  = 1.0.4 =
60
  * Core Disable Comments plugin update.
61
 
2
  Contributors: rbplugins
3
  Tags: disable comments, comments, disable
4
  Requires at least: 3.1
5
+ Tested up to: 4.9
6
+ Stable tag: 1.0.5
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.
49
 
50
  Go to the edit page for the post you want to disable comments on. Scroll down to the "Discussion" box, where you will find the comment options for that post. If you don't see a "Discussion" box, then click on "Screen Options" at the top of your screen, and make sure the "Discussion" checkbox is checked.
51
 
52
+ = If some comments interface elements stay published after plugin activation ? =
53
+
54
+ This is could be a reason of some conflict. If you have some custom theme. Theme could overwrite some elements styles and layouts. If you have such a problem please contact our support team to sort it.
55
+
56
+
57
  == Screenshots ==
58
 
59
  1. Disable Comments plugin - options screen of the Disable Comments RB
61
 
62
  == Changelog ==
63
 
64
+ = 1.0.5 =
65
+ * Files Disable Comments plugin update.
66
+
67
  = 1.0.4 =
68
  * Core Disable Comments plugin update.
69