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 | Disable Comments |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.4.1
- disable-comments.php +4 -2
- readme.txt +3 -0
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
|
@@ -41,7 +41,9 @@ class Disable_Comments {
|
|
41 |
}
|
42 |
|
43 |
// load language files
|
44 |
-
|
|
|
|
|
45 |
|
46 |
// If it looks like first run, check compat
|
47 |
if( empty( $this->options ) ) {
|
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.1
|
7 |
Author: Samir Shah
|
8 |
Author URI: http://rayofsolaris.net/
|
9 |
License: GPL2
|
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 ) ) {
|
readme.txt
CHANGED
@@ -68,6 +68,9 @@ These definitions can be made either in your main `wp-config.php` or in your the
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
71 |
= 1.4 =
|
72 |
* Hide the troublesome "persistent mode" option for all sites where it is not in use. This option will be removed in a future release.
|
73 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.4.1 =
|
72 |
+
* Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.
|
73 |
+
|
74 |
= 1.4 =
|
75 |
* Hide the troublesome "persistent mode" option for all sites where it is not in use. This option will be removed in a future release.
|
76 |
|