diff --git a/README.md b/README.md index 802c9e0..f4bb3ab 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Statify Blacklist # * Contributors: Stefan Kalscheuer * Requires at least: 3.9 -* Tested up to: 4.5.3 -* Stable tag: 1.1.1 +* Tested up to: 4.6 +* Stable tag: 1.1.2 * License: GPLv3 or later * License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -13,13 +13,13 @@ This plugin adds customizable blacklist to Statify to allow blocking of referer ### Current Features ## #### Referer Blacklist #### -Add a list of domains (for simplicity onl second-level, e.g. _example.com_ which blocks _everything.example.com_). +Add a list of domains (for simplicity only second-level, e.g. _example.com_ which blocks _everything.example.com_). #### CleanUp Database #### Filters can be applied to data stored in database after modifying filter rules or for one-time clean-up. #### Compatibility #### -This plugin requires Statify to be installed. The extension has been tested with Statify 1.4.2 +This plugin requires Statify to be installed. The extension has been tested with Statify 1.4.3 The plugin is capable of handling multisite installations. ### Credits ### @@ -40,6 +40,9 @@ The plugin is capable of handling multisite installations. 1. Statify Blacklist settings page ## Changelog ## +### 1.1.2 / 17.08.2016 ### +* Prepared for localization + ### 1.1.1 / 16.08.2016 ### * Some security fixes diff --git a/inc/statifyblacklist.class.php b/inc/statifyblacklist.class.php index b7b859d..4d55a5b 100644 --- a/inc/statifyblacklist.class.php +++ b/inc/statifyblacklist.class.php @@ -40,6 +40,7 @@ class StatifyBlacklist * Class constructor * * @since 1.0.0 + * @changed 1.1.2 */ public function __construct() { @@ -58,11 +59,13 @@ class StatifyBlacklist add_filter('statify_skip_tracking', array('StatifyBlacklist', 'apply_blacklist_filter')); /* Admin only filters */ - if ( is_admin() ) { + if (is_admin()) { + /* Load Textdomain (only needed for backend */ + load_plugin_textdomain( 'statifyblacklist', false, STATIFYBLACKLIST_DIR.'/lang/'); + + /* Add actions */ add_action('wpmu_new_blog', array('StatifyBlacklist_Install', 'init_site')); - add_action('delete_blog', array('StatifyBlacklist_System', 'init_site')); - add_filter('plugin_row_meta', array('StatifyBlacklist_Admin', 'plugin_meta_link'), 10, 2); if (is_multisite()) { diff --git a/statifyblacklist.php b/statify-blacklist.php similarity index 98% rename from statifyblacklist.php rename to statify-blacklist.php index 65e4639..35e3bb3 100644 --- a/statifyblacklist.php +++ b/statify-blacklist.php @@ -8,7 +8,7 @@ Author: Stefan Kalscheuer Author URI: https://stklcode.de Plugin URI: https://wordpress.org/plugins/statify-blacklist License: GPLv3 or later -Version: 1.1.1 +Version: 1.1.2 */ /* Quit */