From f34b76194232e81ec90b7004efd24c9b77b65e1a Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 19 May 2018 15:09:57 +0200 Subject: [PATCH] Removed load_plugin_textdomain and domain path header Translation is handled via translate.wordpress.org and minimum required version is greater than 4.6, so the local translation artifacts are dropped. --- README.md | 1 + inc/class-statifyblacklist.php | 3 --- statify-blacklist.php | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index fe7eece..c22f181 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ Because of this, an IP blacklist can only be applied while processing the reques ### 1.5.0 / unreleased ### * Minimum required WordPress version is 4.7 +* Removed `load_plugin_textdomain()` and `Domain Path` header ### 1.4.4 / 19.05.2018 ### * Fix live filter chain when regular expressions are active (#12) diff --git a/inc/class-statifyblacklist.php b/inc/class-statifyblacklist.php index 3ebea16..b56b1a1 100644 --- a/inc/class-statifyblacklist.php +++ b/inc/class-statifyblacklist.php @@ -86,9 +86,6 @@ class StatifyBlacklist { // Admin only filters. 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_System', 'install_site' ) ); add_action( 'delete_blog', array( 'StatifyBlacklist_System', 'uninstall_site' ) ); diff --git a/statify-blacklist.php b/statify-blacklist.php index 7588846..af33b65 100644 --- a/statify-blacklist.php +++ b/statify-blacklist.php @@ -14,7 +14,6 @@ * Author: Stefan Kalscheuer (@stklcode) * Author URI: https://www.stklcode.de * Text Domain: statify-blacklist - * Domain Path: /lang * License: GPLv2 or later * * Statify Blacklist is free software: you can redistribute it and/or modify