WP-Ban - Version 1.66

Version Description

N/A

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-Ban
Version 1.66
Comparing to
See all releases

Code changes from version 1.65 to 1.66

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wp-ban.php +2 -12
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/site/donation/
4
  Tags: banned, ban, deny, denied, permission, ip, hostname, host, spam, bots, bot, exclude, referrer, url, referral, range
5
- Requires at least: 2.8
6
  Tested up to: 4.3
7
- Stable tag: 1.65
8
 
9
  Ban users by IP, IP Range, host name, user agent and referrer url from visiting your WordPress's blog.
10
 
@@ -27,6 +27,9 @@ It will display a custom ban message when the banned IP, IP range, host name or
27
  * I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
28
 
29
  == Changelog ==
 
 
 
30
  = Version 1.65 =
31
  * NEW: Supports WordPress Multisite Network Activation
32
  * NEW: Uses native WordPress uninstall.php
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/site/donation/
4
  Tags: banned, ban, deny, denied, permission, ip, hostname, host, spam, bots, bot, exclude, referrer, url, referral, range
5
+ Requires at least: 4.3
6
  Tested up to: 4.3
7
+ Stable tag: 1.66
8
 
9
  Ban users by IP, IP Range, host name, user agent and referrer url from visiting your WordPress's blog.
10
 
27
  * I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
28
 
29
  == Changelog ==
30
+ = Version 1.66 =
31
+ * FIXED: Cannot redeclare get_language_attributes()
32
+
33
  = Version 1.65 =
34
  * NEW: Supports WordPress Multisite Network Activation
35
  * NEW: Uses native WordPress uninstall.php
wp-ban.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-Ban
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Ban users by IP, IP Range, host name, user agent and referer url from visiting your WordPress's blog. It will display a custom ban message when the banned IP, IP range, host name, user agent or referer url tries to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.
6
- Version: 1.65
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-ban
@@ -11,7 +11,7 @@ Text Domain: wp-ban
11
 
12
 
13
  /*
14
- Copyright 2014 Lester Chan (email : lesterchan@gmail.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
@@ -239,16 +239,6 @@ function is_admin_user_agent($check) {
239
  }
240
 
241
 
242
- ### Function: Returns page's language attributes depends on WordPress language
243
- function get_language_attributes($doctype = 'html') {
244
- ob_start();
245
- language_attributes();
246
- $language_attributes = ob_get_contents();
247
- ob_end_clean();
248
- return $language_attributes;
249
- }
250
-
251
-
252
  ### Function: Wildcard Check
253
  function preg_match_wildcard($regex, $subject) {
254
  $regex = preg_quote($regex, '#');
3
  Plugin Name: WP-Ban
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Ban users by IP, IP Range, host name, user agent and referer url from visiting your WordPress's blog. It will display a custom ban message when the banned IP, IP range, host name, user agent or referer url tries to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.
6
+ Version: 1.66
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-ban
11
 
12
 
13
  /*
14
+ Copyright 2015 Lester Chan (email : lesterchan@gmail.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
239
  }
240
 
241
 
 
 
 
 
 
 
 
 
 
 
242
  ### Function: Wildcard Check
243
  function preg_match_wildcard($regex, $subject) {
244
  $regex = preg_quote($regex, '#');