Disable Comments - Version 1.0.8

Version Description

  • Update interface and tested in Wordpress 5.0
Download this release

Release Info

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

Code changes from version 1.0.7 to 1.0.8

class_rb_disable-comments.php CHANGED
@@ -143,7 +143,7 @@ class Rbs_Disable_Comments {
143
  return;
144
  $hascaps = current_user_can( 'manage_options' );
145
  if( $hascaps ) {
146
- echo '<div class="updated fade"><p>' . sprintf( __( 'The <em>Disable Comments</em> plugin is active, but isn\'t configured to do anything yet. Visit the <a href="%s">configuration page</a> to choose which post types to disable comments on.', 'disable-comments'), esc_attr( $this->settings_page_url() ) ) . '</p></div>';
147
  }
148
  }
149
 
143
  return;
144
  $hascaps = current_user_can( 'manage_options' );
145
  if( $hascaps ) {
146
+ echo '<div class="updated fade"><p>' . sprintf( __( 'The <em>Disable Comments</em> plugin is active, but isn\'t configured to do anything yet. Visit the <a href="%s">configuration page</a> to choose which post types to disable comments on.', 'disable-comments-rb'), esc_attr( $this->settings_page_url() ) ) . '</p></div>';
147
  }
148
  }
149
 
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.7
7
  Author: rbPlugins
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.7' );
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.8
7
  Author: rbPlugins
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.8' );
18
 
19
  include_once( RB_DISABLE_COMMENTS_PATH .'class_rb_disable-comments.php');
20
 
languages/disable-comments-rb-sv.po ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of Plugins - Disable Comments - Development (trunk) in Swedish
2
+ # This file is distributed under the same license as the Plugins - Disable Comments - Development (trunk) package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: 2017-12-11 00:17:16+0000\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
+ "X-Generator: GlotPress/2.4.0-alpha\n"
11
+ "Language: sv_SE\n"
12
+ "Project-Id-Version: Plugins - Disable Comments - Development (trunk)\n"
13
+
14
+ #. Author of the plugin/theme
15
+ msgid "rbPlugins"
16
+ msgstr "rbPlugins"
17
+
18
+ #. Description of the plugin/theme
19
+ msgid "Easy tool to disable comments for your blog posts, pages. Admin can disable comments in just few clicks. Delete comments from blog post."
20
+ msgstr "Lätt verktyg för att inaktivera kommentarer för dina blogginlägg och sidor. Admin kan inaktivera kommentarer med några få klick. Ta bort kommentarer från blogginlägg."
21
+
22
+ #. #-#-#-#-# disable-comments-rb-code.pot (Disable Comments RB 1.0.7)
23
+ #. #-#-#-#-#
24
+ #. Plugin URI of the plugin/theme
25
+ #. #-#-#-#-# disable-comments-rb-code.pot (Disable Comments RB 1.0.7)
26
+ #. #-#-#-#-#
27
+ #. Author URI of the plugin/theme
28
+ msgid "https://robosoft.co/wordpress-plugins/disable-comments"
29
+ msgstr "https://robosoft.co/wordpress-plugins/disable-comments"
30
+
31
+ #. #-#-#-#-# disable-comments-rb-code.pot (Disable Comments RB 1.0.7)
32
+ #. #-#-#-#-#
33
+ #. Plugin Name of the plugin/theme
34
+ #: options.php:39
35
+ msgid "Disable Comments RB"
36
+ msgstr "Disable Comments RB"
37
+
38
+ #: options.php:64
39
+ msgid "Save Changes"
40
+ msgstr "Spara ändringar"
41
+
42
+ #: options.php:57
43
+ msgid "Enable"
44
+ msgstr "Aktivera"
45
+
46
+ #: options.php:49
47
+ msgid "Disable all comments"
48
+ msgstr "Inaktivera alla kommentarer"
49
+
50
+ #: class_rb_disable-comments.php:216
51
+ msgid "Rb Disable Comments"
52
+ msgstr "Rb Disable Comments"
53
+
54
+ #: class_rb_disable-comments.php:207
55
+ msgid "Settings"
56
+ msgstr "Inställningar"
57
+
58
+ #: class_rb_disable-comments.php:146
59
+ msgid "The <em>Disable Comments</em> plugin is active, but isn't configured to do anything yet. Visit the <a href=\"%s\">configuration page</a> to choose which post types to disable comments on."
60
+ msgstr "Tillägget <em>Disable Comments</em> är aktivt men är inte konfigurerad att göra något än. Besök <a href=\"%s\">konfigurationssidan</a> för att välja på vilka inläggstyper kommentarer ska inaktiveras."
61
+
62
+ #: class_rb_disable-comments.php:125 class_rb_disable-comments.php:155
63
+ msgid "Comments are closed."
64
+ msgstr "Kommentarer är stängda."
options.php CHANGED
@@ -25,10 +25,8 @@ if ( isset( $_POST['submit'] ) ) {
25
  else
26
  $disabled_post_types = array() ;
27
 
28
-
29
  $disabled_post_types = array_intersect( $disabled_post_types, array_keys( $types ) );
30
 
31
-
32
  $this->options['disabled_post_types'] = $disabled_post_types;
33
 
34
  $this->save_options();
@@ -38,7 +36,7 @@ if ( isset( $_POST['submit'] ) ) {
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>
@@ -46,7 +44,7 @@ if ( isset( $_POST['submit'] ) ) {
46
  <label for="remove_everywhere">
47
  <input type="radio" id="remove_everywhere" name="mode" value="remove_everywhere" <?php checked( isset($this->options['remove_everywhere']) && $this->options['remove_everywhere'] );?> />
48
  <strong>
49
- <?php _e( 'Disable all comments'); ?>
50
  </strong>
51
  </label>
52
  </li>
@@ -54,14 +52,14 @@ if ( isset( $_POST['submit'] ) ) {
54
  <label for="rb_disable_comments_off">
55
  <input type="radio" id="rb_disable_comments_off" name="mode" value="rb_disable_comments_off" <?php checked( !isset($this->options['remove_everywhere']) || !$this->options['remove_everywhere'] );?> />
56
  <strong>
57
- <?php _e( 'Enable'); ?>
58
  </strong>
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>
66
  </form>
67
  </div>
25
  else
26
  $disabled_post_types = array() ;
27
 
 
28
  $disabled_post_types = array_intersect( $disabled_post_types, array_keys( $types ) );
29
 
 
30
  $this->options['disabled_post_types'] = $disabled_post_types;
31
 
32
  $this->save_options();
36
  <div class="wrap">
37
  <h1><?php _e( 'Disable Comments RB', 'disable-comments-rb'); ?></h1>
38
  <p>
39
+ <?php _e('Here you can configure your disabled comments tools. Section with all configuration settings of this tool.', 'disable-comments-rb') ;?>
40
  </p>
41
  <form action="" method="post" id="disable-comments">
42
  <ul>
44
  <label for="remove_everywhere">
45
  <input type="radio" id="remove_everywhere" name="mode" value="remove_everywhere" <?php checked( isset($this->options['remove_everywhere']) && $this->options['remove_everywhere'] );?> />
46
  <strong>
47
+ <?php _e( 'Disable all comments', 'disable-comments-rb'); ?>
48
  </strong>
49
  </label>
50
  </li>
52
  <label for="rb_disable_comments_off">
53
  <input type="radio" id="rb_disable_comments_off" name="mode" value="rb_disable_comments_off" <?php checked( !isset($this->options['remove_everywhere']) || !$this->options['remove_everywhere'] );?> />
54
  <strong>
55
+ <?php _e( 'Enable all Comments (comments on entire site will be turned on)', 'disable-comments-rb'); ?>
56
  </strong>
57
  </label>
58
  </li>
59
  </ul>
60
  <?php wp_nonce_field( 'disable-comments-rb-options' ); ?>
61
  <p class="submit">
62
+ <input class="button-primary" type="submit" name="submit" value="<?php _e( 'Save Changes', 'disable-comments-rb') ?>">
63
  </p>
64
  </form>
65
  </div>
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.9
6
- Stable tag: 1.0.7
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.5 =
65
  * Files Disable Comments plugin update.
66
 
2
  Contributors: rbplugins
3
  Tags: disable comments, comments, disable
4
  Requires at least: 3.1
5
+ Tested up to: 5.0
6
+ Stable tag: 1.0.8
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.8 =
65
+ * Update interface and tested in Wordpress 5.0
66
+
67
  = 1.0.5 =
68
  * Files Disable Comments plugin update.
69