Version Description
- Fix login template compatibility for WordPress 3.9
Download this release
Release Info
| Developer | husobj |
| Plugin | |
| Version | 1.7.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7 to 1.7.1
- admin/js/settings.js +0 -13
- password-protected.php +2 -2
- readme.txt +8 -2
- theme/login.php +9 -2
admin/js/settings.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
jQuery(document).ready( function($) {
|
| 3 |
-
|
| 4 |
-
// Disable 'Allow Feeds' Checkbox
|
| 5 |
-
$('input#password_protected_status').change(function(e){
|
| 6 |
-
if ($(this).attr('checked') == 'checked') {
|
| 7 |
-
$('input#password_protected_feeds').removeAttr('disabled');
|
| 8 |
-
} else {
|
| 9 |
-
$('input#password_protected_feeds').attr('disabled', 'disabled');
|
| 10 |
-
}
|
| 11 |
-
}).trigger('change');
|
| 12 |
-
|
| 13 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
password-protected.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Password Protected
|
| 5 |
Plugin URI: http://wordpress.org/extend/plugins/password-protected/
|
| 6 |
Description: A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
|
| 7 |
-
Version: 1.7
|
| 8 |
Author: Ben Huson
|
| 9 |
Text Domain: password-protected
|
| 10 |
Author URI: http://www.benhuson.co.uk/
|
|
@@ -42,7 +42,7 @@ $Password_Protected = new Password_Protected();
|
|
| 42 |
|
| 43 |
class Password_Protected {
|
| 44 |
|
| 45 |
-
var $version = '1.7';
|
| 46 |
var $admin = null;
|
| 47 |
var $errors = null;
|
| 48 |
|
| 4 |
Plugin Name: Password Protected
|
| 5 |
Plugin URI: http://wordpress.org/extend/plugins/password-protected/
|
| 6 |
Description: A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.
|
| 7 |
+
Version: 1.7.1
|
| 8 |
Author: Ben Huson
|
| 9 |
Text Domain: password-protected
|
| 10 |
Author URI: http://www.benhuson.co.uk/
|
| 42 |
|
| 43 |
class Password_Protected {
|
| 44 |
|
| 45 |
+
var $version = '1.7.1';
|
| 46 |
var $admin = null;
|
| 47 |
var $errors = null;
|
| 48 |
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: husobj
|
|
| 3 |
Donate link: http://www.benhuson.co.uk/donate/
|
| 4 |
Tags: password, protect, password protect, login
|
| 5 |
Requires at least: 3.2
|
| 6 |
-
Tested up to: 3.
|
| 7 |
-
Stable tag: 1.7
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
A very simple way to quickly password protect your WordPress site with a single password.
|
|
@@ -78,6 +78,9 @@ More instructions can be found at [wp-translations.org](http://wp-translations.o
|
|
| 78 |
|
| 79 |
== Changelog ==
|
| 80 |
|
|
|
|
|
|
|
|
|
|
| 81 |
= 1.7 =
|
| 82 |
* Added 'password_protected_theme_file' filter to allow custom login templates.
|
| 83 |
* It's now really easy to contribute to the translation of this plugin via our [Transifex page](https://www.transifex.com/projects/p/password-protected/resource/password-protected/).
|
|
@@ -135,6 +138,9 @@ More instructions can be found at [wp-translations.org](http://wp-translations.o
|
|
| 135 |
|
| 136 |
== Upgrade Notice ==
|
| 137 |
|
|
|
|
|
|
|
|
|
|
| 138 |
= 1.7 =
|
| 139 |
* Added 'password_protected_theme_file' filter and option to allow logged in users. Contribute to the translation of this plugin via our [Transifex page](https://www.transifex.com/projects/p/password-protected/resource/password-protected/).
|
| 140 |
|
| 3 |
Donate link: http://www.benhuson.co.uk/donate/
|
| 4 |
Tags: password, protect, password protect, login
|
| 5 |
Requires at least: 3.2
|
| 6 |
+
Tested up to: 3.9
|
| 7 |
+
Stable tag: 1.7.1
|
| 8 |
License: GPLv2 or later
|
| 9 |
|
| 10 |
A very simple way to quickly password protect your WordPress site with a single password.
|
| 78 |
|
| 79 |
== Changelog ==
|
| 80 |
|
| 81 |
+
= 1.7.1 =
|
| 82 |
+
* Fix login template compatibility for WordPress 3.9
|
| 83 |
+
|
| 84 |
= 1.7 =
|
| 85 |
* Added 'password_protected_theme_file' filter to allow custom login templates.
|
| 86 |
* It's now really easy to contribute to the translation of this plugin via our [Transifex page](https://www.transifex.com/projects/p/password-protected/resource/password-protected/).
|
| 138 |
|
| 139 |
== Upgrade Notice ==
|
| 140 |
|
| 141 |
+
= 1.7.1 =
|
| 142 |
+
* Fix login template compatibility for WordPress 3.9
|
| 143 |
+
|
| 144 |
= 1.7 =
|
| 145 |
* Added 'password_protected_theme_file' filter and option to allow logged in users. Contribute to the translation of this plugin via our [Transifex page](https://www.transifex.com/projects/p/password-protected/resource/password-protected/).
|
| 146 |
|
theme/login.php
CHANGED
|
@@ -69,8 +69,15 @@ if ( class_exists( 'CWS_Login_Logo_Plugin' ) ) {
|
|
| 69 |
<title><?php echo apply_filters( 'password_protected_wp_title', get_bloginfo( 'name' ) ); ?></title>
|
| 70 |
|
| 71 |
<?php
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
if ( $is_iphone ) {
|
| 76 |
?>
|
| 69 |
<title><?php echo apply_filters( 'password_protected_wp_title', get_bloginfo( 'name' ) ); ?></title>
|
| 70 |
|
| 71 |
<?php
|
| 72 |
+
|
| 73 |
+
global $wp_version;
|
| 74 |
+
|
| 75 |
+
if ( version_compare( $wp_version, '3.9-dev', '>=' ) ) {
|
| 76 |
+
wp_admin_css( 'login', true );
|
| 77 |
+
} else {
|
| 78 |
+
wp_admin_css( 'wp-admin', true );
|
| 79 |
+
wp_admin_css( 'colors-fresh', true );
|
| 80 |
+
}
|
| 81 |
|
| 82 |
if ( $is_iphone ) {
|
| 83 |
?>
|
