Skip to content

Commit c20a109

Browse files
committed
Merge branch 'release/4.6.1'
2 parents af60667 + 2927747 commit c20a109

File tree

8 files changed

+39
-22
lines changed

8 files changed

+39
-22
lines changed

icwp-wpsf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WordPress Simple Security Firewall
44
* Plugin URI: http://icwp.io/2f
55
* Description: Easy-To-Use WordPress Security System
6-
* Version: 4.6.0
6+
* Version: 4.6.1
77
* Text Domain: wp-simple-firewall
88
* Author: iControlWP
99
* Author URI: http://icwp.io/2e
2.96 KB
Binary file not shown.
2 KB
Binary file not shown.

languages/wp-simple-firewall-fi.mo

870 Bytes
Binary file not shown.

plugin-spec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
return "---
33
properties:
4-
version: '4.6.0'
4+
version: '4.6.1'
55
slug_parent: 'icwp'
66
slug_plugin: 'wpsf'
77
human_name: 'WordPress Simple Firewall'

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Donate link: http://icwp.io/q
44
License: GPLv3
55
License URI: http://www.gnu.org/licenses/gpl.html
66
Tags: security, firewall, audit trail, ithemes, better wp security, ddos, brute force, whitelist, blacklist, two-factor authentication, GASP, spam, automatic updates, lockdown, login, hack
7-
Requires at least: 3.2.0
7+
Requires at least: 3.5.0
88
Tested up to: 4.2
9-
Stable tag: 4.6.0
9+
Stable tag: 4.6.1
1010

1111
Complete and Easy-To-Use WordPress Security. Unrestricted Access. No Premium Features.
1212

@@ -257,6 +257,9 @@ You can either manually upgrade, or WordPress will handle it in due course.
257257
= 4.6 Series =
258258
*Released: 10th April, 2015*
259259

260+
* **(v.1)** FIX: XMLRPC compatibility logic was preventing other non-XMLRPC related code from running.
261+
* **(v.1)** UPDATED: Plugin Badge styling
262+
* **(v.1)** UPDATED: Updated Czech(41%) and Spanish (60%) translations
260263
* **(v.0)** ADDED: New feature that displays the last login time for all users on the users listing page (User Management feature must be enabled).
261264
* **(v.0)** ADDED: **Completely optional** promotional Plugin Badge option - help us promote the plugin and reassure your site visitors at the same time. [Learn More](http://icwp.io/5x)
262265
* **(v.0)** UPDATED: Updated Czech(38%) translations

src/processors/user_management.php

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,33 @@ class ICWP_WPSF_Processor_UserManagement_V4 extends ICWP_WPSF_Processor_Base {
3232
public function run() {
3333
$oWp = $this->loadWpFunctionsProcessor();
3434

35+
// Adds last login indicator column to all plugins in plugin listing.
36+
add_filter( 'manage_users_columns', array( $this, 'fAddUserListLastLoginColumn') );
37+
add_filter( 'wpmu_users_columns', array( $this, 'fAddUserListLastLoginColumn') );
38+
39+
// Handles login notification emails and setting last user login
40+
add_action( 'wp_login', array( $this, 'onWpLogin' ) );
41+
3542
// XML-RPC Compatibility
3643
if ( $oWp->getIsXmlrpc() && $this->getIsOption( 'enable_xmlrpc_compatibility', 'Y' ) ) {
3744
return true;
3845
}
3946

47+
/** Everything from this point on must consider XMLRPC compatibility **/
48+
4049
if ( $this->getIsOption( 'enable_user_management', 'Y' ) ) {
4150
$this->getProcessorSessions()->run();
4251
}
4352

44-
// Adds automatic update indicator column to all plugins in plugin listing.
45-
add_filter( 'manage_users_columns', array( $this, 'fAddUserListLastLoginColumn') );
46-
add_filter( 'wpmu_users_columns', array( $this, 'fAddUserListLastLoginColumn') );
47-
48-
// Handles login notification emails and setting last user login
49-
add_action( 'wp_login', array( $this, 'onWpLogin' ) );
50-
5153
return true;
5254
}
5355

56+
/**
57+
* Hooked to action wp_login
58+
*
59+
* @param $sUsername
60+
* @return bool
61+
*/
5462
public function onWpLogin( $sUsername ) {
5563
$oUser = $this->loadWpFunctionsProcessor()->getUserByUsername( $sUsername );
5664
if ( !( $oUser instanceof WP_User ) ) {
@@ -114,7 +122,7 @@ public function aPrintUsersListLastLoginColumnContent( $sContent, $sColumnName,
114122
* @param WP_User $oUser
115123
* @return bool
116124
*/
117-
public function sendLoginEmailNotification( $oUser ) {
125+
protected function sendLoginEmailNotification( $oUser ) {
118126
if ( !( $oUser instanceof WP_User ) ) {
119127
return false;
120128
}

views/snippets/site_badge.php

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,56 @@
33
background-color: rgba(255, 255, 255, 0.9);
44
border-radius: 3px 3px 0 0;
55
bottom: 0;
6+
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.47);
67
color: #000000;
8+
height: 33px;
79
left: 20px;
810
padding: 7px 7px 4px;
911
position: fixed;
12+
text-align: left;
1013
width: 189px;
1114
z-index: 100;
1215
}
1316
#icwpWpsfSiteBadge a {
17+
border: 0 none;
1418
color: inherit !important;
1519
display: block;
1620
}
21+
#icwpWpsfSiteBadge a:hover {
22+
text-decoration: none;
23+
}
1724
#icwpWpsfSiteBadge .badge-text {
18-
font-size: 11px;
25+
font-size: 10px;
1926
line-height: 17px;
2027
padding-left: 43px;
2128
}
22-
#icwpWpsfSiteBadge a:hover {
23-
text-decoration: none;
24-
}
2529
#icwpWpsfSiteBadge img {
2630
float: left;
2731
}
2832
#icwpWpsfCloseButton {
2933
background-color: #ffffff;
3034
border: 1px solid #aaaaaa;
3135
border-radius: 5px;
32-
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.11);
36+
1px 2px 4px rgba(0, 0, 0, 0.30);
3337
color: #666666;
3438
font-size: 9px;
35-
height: 13px;
39+
height: 10px;
3640
left: -5px;
37-
line-height: 2px;
41+
line-height: 6px;
3842
padding: 3px;
3943
position: absolute;
44+
text-align: center;
4045
top: -5px;
41-
width: 13px;
46+
width: 10px;
47+
z-index: 1001;
4248
}
4349
#icwpWpsfCloseButton:hover {
4450
cursor: pointer;
4551
}
4652
</style>
4753
<div id="icwpWpsfSiteBadge">
4854
<a id="icwpWpsfCloseButton" onclick="getElementById('icwpWpsfSiteBadge').remove();">x</a>
49-
<a href="http://icwp.io/wpsecurityfirewall" target="_blank" alt="WordPress Simple Security Firewall">
50-
<img src="%s" /> <div class="badge-text">Site Protected By The Simple Security Firewall &rarr;</div>
55+
<a href="http://icwp.io/wpsecurityfirewall" target="_blank" title="WordPress Security Firewall">
56+
<img src="%s" alt="WordPress Security Firewall Logo"/> <div class="badge-text">This Site Is Protected By <span style="font-style: italic;">The</span><br/>WordPress Security Firewall &rarr;</div>
5157
</a>
5258
</div>

0 commit comments

Comments
 (0)