Skip to content

Commit

Permalink
Prepared for localization
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Aug 17, 2016
1 parent aba6202 commit 5d751e2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 ###
Expand All @@ -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

Expand Down
9 changes: 6 additions & 3 deletions inc/statifyblacklist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function instance()
* Class constructor
*
* @since 1.0.0
* @changed 1.1.2
*/
public function __construct()
{
Expand All @@ -58,11 +59,13 @@ public function __construct()
add_filter('statify_skip_tracking', array('StatifyBlacklist', 'apply_blacklist_filter'));

/* Admin only filters */
if ( is_admin() ) {
add_action('wpmu_new_blog', array('StatifyBlacklist_Install', 'init_site'));
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()) {
Expand Down
2 changes: 1 addition & 1 deletion statifyblacklist.php → statify-blacklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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 */
Expand Down

0 comments on commit 5d751e2

Please sign in to comment.