Disable Comments - Version 1.0.1

Version Description

  • Modification of the admin interface, added description.
Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.1

class_rb_disable-comments.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  * RB Disable Comments
4
- * Version: 1.0.0 - 88347
5
  * Author: RBS
6
- * Date: Thu, 01 Jun 2017 11:42:22 GMT
7
  */
8
 
9
  if( !defined('WPINC') || !defined("ABSPATH") ){
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") ){
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.0
7
  Author: Robosoft Team
8
  Author URI: https://robosoft.co/wordpress-plugins/disable-comments
9
  License: GPL2
@@ -14,7 +14,7 @@ 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.0' );
18
 
19
  include_once( RB_DISABLE_COMMENTS_PATH .'class_rb_disable-comments.php');
20
 
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.1
7
  Author: Robosoft Team
8
  Author URI: https://robosoft.co/wordpress-plugins/disable-comments
9
  License: GPL2
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.1' );
18
 
19
  include_once( RB_DISABLE_COMMENTS_PATH .'class_rb_disable-comments.php');
20
 
options.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  * RB Disable Comments
4
- * Version: 1.0.0 - 88347
5
  * Author: RBS
6
- * Date: Thu, 01 Jun 2017 11:42:22 GMT
7
  */
8
 
9
  if( !defined('WPINC') || !defined("ABSPATH") ){
@@ -17,7 +17,7 @@ foreach( array_keys( $types ) as $type ) {
17
  }
18
 
19
  if ( isset( $_POST['submit'] ) ) {
20
- check_admin_referer( 'disable-comments-admin' );
21
  $this->options['remove_everywhere'] = ( $_POST['mode'] == 'remove_everywhere' );
22
 
23
  if( $this->options['remove_everywhere'] )
@@ -36,7 +36,10 @@ if ( isset( $_POST['submit'] ) ) {
36
  ?>
37
  <style> .indent {padding-left: 2em} </style>
38
  <div class="wrap">
39
- <h1><?php _e( 'Robo Disable Comments') ?></h1>
 
 
 
40
  <form action="" method="post" id="disable-comments">
41
  <ul>
42
  <li>
@@ -56,7 +59,7 @@ if ( isset( $_POST['submit'] ) ) {
56
  </label>
57
  </li>
58
  </ul>
59
- <?php wp_nonce_field( 'disable-comments-admin' ); ?>
60
  <p class="submit">
61
  <input class="button-primary" type="submit" name="submit" value="<?php _e( 'Save Changes') ?>">
62
  </p>
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") ){
17
  }
18
 
19
  if ( isset( $_POST['submit'] ) ) {
20
+ check_admin_referer( 'disable-comments-rb-options' );
21
  $this->options['remove_everywhere'] = ( $_POST['mode'] == 'remove_everywhere' );
22
 
23
  if( $this->options['remove_everywhere'] )
36
  ?>
37
  <style> .indent {padding-left: 2em} </style>
38
  <div class="wrap">
39
+ <h1><?php _e( 'Disable Comments RB', 'disable-comments-rb'); ?></h1>
40
+ <p>
41
+ Here you can configure your disabled comments tools. Section with all configuration settings of this tool.
42
+ </p>
43
  <form action="" method="post" id="disable-comments">
44
  <ul>
45
  <li>
59
  </label>
60
  </li>
61
  </ul>
62
+ <?php wp_nonce_field( 'disable-comments-rb-options' ); ?>
63
  <p class="submit">
64
  <input class="button-primary" type="submit" name="submit" value="<?php _e( 'Save Changes') ?>">
65
  </p>
readme.txt CHANGED
@@ -3,16 +3,35 @@ Contributors: rbplugins
3
  Tags: disable comments, comments, disable
4
  Requires at least: 4.1
5
  Tested up to: 4.8
6
- Stable tag: 1.0.0
7
  License: GPLv2 or later
8
 
9
  Easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
10
 
11
  == Description ==
12
 
13
- Our plugin it's a tool for admin to fully disable comments on your website. It's not require any special skills or code modifications to disable comments on your website.
 
14
 
15
- Just install plugin from the directory and enable disable comments function in plugin settings.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  == Frequently Asked Questions ==
18
 
@@ -32,5 +51,8 @@ Go to the edit page for the post you want to disable comments on. Scroll down to
32
 
33
  == Changelog ==
34
 
 
 
 
35
  = 1.0 =
36
  * First release of the plugin.
3
  Tags: disable comments, comments, disable
4
  Requires at least: 4.1
5
  Tested up to: 4.8
6
+ Stable tag: 1.0.1
7
  License: GPLv2 or later
8
 
9
  Easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post.
10
 
11
  == Description ==
12
 
13
+ Our plugin it's a tool for admin to fully disable comments on your website. Our plugin globally disable commenting on all posts, pages, attachments. It remove all comment related features and options. All related items will be removed from Dashboard, Widgets, Admin menu. Our plugin use smart alghorithm and for the basic usage you need install and enable it.
14
+ It's simple and powerful.
15
 
16
+ If you planning to use comments somewhere on your website you don't have to use this plugin. Just selectively turn off this functionality in required section of your Wordpress website. If you don't know how to turn off comments on individual posts or pages feel free to ask support or use FAQ section.
17
+
18
+ **Key features**
19
+
20
+ * All comments links in admin menu are hidden;
21
+ * Hide Dashboard / Recent Comments section;
22
+ * Hide Dashboard / Discussion section;
23
+ * All comments links in admin bar are hidden;
24
+ * Disabled all comments widgets;
25
+ * Discussion page settings turned off;
26
+ * Disabled RSS/Atom feeds;
27
+ * Turned off Pingback functionality in header;
28
+ * Pingbacks are disabled;
29
+
30
+ Before enable plugin most effective will be to delete existing comments to avoid any conflicts with your current theme. Depend of the theme code existing comments can stay published.
31
+
32
+ It's not require any special skills or code modifications to disable comments on your website. Just install plugin on your website, open settings to enable main functionality. Just install plugin from the directory and activate disable comments function in plugin settings.
33
+
34
+ If you have some ideas of new functionality or options for this plugin please drop a line to our contact form or support section.
35
 
36
  == Frequently Asked Questions ==
37
 
51
 
52
  == Changelog ==
53
 
54
+ = 1.0.1 =
55
+ * Modification of the admin interface, added description.
56
+
57
  = 1.0 =
58
  * First release of the plugin.