Version Description
- Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.
Download this release
Release Info
| Developer | solarissmoke |
| Plugin | |
| Version | 1.4.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.1 to 1.4.2
- disable-comments.php +6 -6
- readme.txt +2 -2
disable-comments.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Disable Comments
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/disable-comments/
|
| 5 |
Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type.
|
| 6 |
-
Version: 1.4.
|
| 7 |
Author: Samir Shah
|
| 8 |
Author URI: http://rayofsolaris.net/
|
| 9 |
License: GPL2
|
|
@@ -40,11 +40,6 @@ class Disable_Comments {
|
|
| 40 |
$this->options = get_option( 'disable_comments_options', array() );
|
| 41 |
}
|
| 42 |
|
| 43 |
-
// load language files
|
| 44 |
-
add_action('plugins_loaded', function(){
|
| 45 |
-
load_plugin_textdomain( 'disable-comments', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
| 46 |
-
});
|
| 47 |
-
|
| 48 |
// If it looks like first run, check compat
|
| 49 |
if( empty( $this->options ) ) {
|
| 50 |
$this->check_compatibility();
|
|
@@ -137,9 +132,14 @@ class Disable_Comments {
|
|
| 137 |
}
|
| 138 |
|
| 139 |
// These can happen later
|
|
|
|
| 140 |
add_action( 'wp_loaded', array( $this, 'init_wploaded_filters' ) );
|
| 141 |
}
|
| 142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
public function init_wploaded_filters(){
|
| 144 |
$disabled_post_types = $this->get_disabled_post_types();
|
| 145 |
if( !empty( $disabled_post_types ) ) {
|
| 3 |
Plugin Name: Disable Comments
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/disable-comments/
|
| 5 |
Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type.
|
| 6 |
+
Version: 1.4.2
|
| 7 |
Author: Samir Shah
|
| 8 |
Author URI: http://rayofsolaris.net/
|
| 9 |
License: GPL2
|
| 40 |
$this->options = get_option( 'disable_comments_options', array() );
|
| 41 |
}
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
// If it looks like first run, check compat
|
| 44 |
if( empty( $this->options ) ) {
|
| 45 |
$this->check_compatibility();
|
| 132 |
}
|
| 133 |
|
| 134 |
// These can happen later
|
| 135 |
+
add_action( 'plugins_loaded', array( $this, 'register_text_domain' ) );
|
| 136 |
add_action( 'wp_loaded', array( $this, 'init_wploaded_filters' ) );
|
| 137 |
}
|
| 138 |
|
| 139 |
+
public function register_text_domain() {
|
| 140 |
+
load_plugin_textdomain( 'disable-comments', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
public function init_wploaded_filters(){
|
| 144 |
$disabled_post_types = $this->get_disabled_post_types();
|
| 145 |
if( !empty( $disabled_post_types ) ) {
|
readme.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
Contributors: solarissmoke
|
| 3 |
Donate link: http://www.rayofsolaris.net/donate/
|
| 4 |
Tags: comments, disable, global
|
| 5 |
-
Requires at least:
|
| 6 |
Tested up to: 4.5
|
| 7 |
Stable tag: trunk
|
| 8 |
|
|
@@ -68,7 +68,7 @@ These definitions can be made either in your main `wp-config.php` or in your the
|
|
| 68 |
|
| 69 |
== Changelog ==
|
| 70 |
|
| 71 |
-
= 1.4.
|
| 72 |
* Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.
|
| 73 |
|
| 74 |
= 1.4 =
|
| 2 |
Contributors: solarissmoke
|
| 3 |
Donate link: http://www.rayofsolaris.net/donate/
|
| 4 |
Tags: comments, disable, global
|
| 5 |
+
Requires at least: 4.0
|
| 6 |
Tested up to: 4.5
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 68 |
|
| 69 |
== Changelog ==
|
| 70 |
|
| 71 |
+
= 1.4.2 =
|
| 72 |
* Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.
|
| 73 |
|
| 74 |
= 1.4 =
|
