Version Description
- Use HTTPS if
is_ssl()
on the login page.
Download this release
Release Info
Developer | markjaquith |
Plugin | Login Logo |
Version | 0.4 |
Comparing to | |
See all releases |
Code changes from version 0.3 to 0.4
- login-logo.php +9 -3
- readme.txt +7 -1
login-logo.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Login Logo
|
4 |
Description: Drop a PNG file named <code>login-logo.png</code> into your <code>wp-content</code> directory. This simple plugin takes care of the rest, with zero configuration. Transparent backgrounds work best. Keep the width below 326 pixels.
|
5 |
-
Version: 0.
|
6 |
License: GPL
|
7 |
Author: Mark Jaquith
|
8 |
Author URI: http://coveredwebservices.com/
|
@@ -31,16 +31,22 @@ class CWS_Login_Logo_Plugin {
|
|
31 |
if ( $site && isset( $site->id ) ) {
|
32 |
$this->logo_locations['network'] = array(
|
33 |
'path' => WP_CONTENT_DIR . '/login-logo-network-' . $site->id . '.png',
|
34 |
-
'url' => WP_CONTENT_URL . '/login-logo-network-' . $site->id . '.png'
|
35 |
);
|
36 |
}
|
37 |
}
|
38 |
$this->logo_locations['global'] = array(
|
39 |
'path' => WP_CONTENT_DIR . '/login-logo.png',
|
40 |
-
'url' => WP_CONTENT_URL . '/login-logo.png'
|
41 |
);
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
private function logo_file_exists() {
|
45 |
if ( ! isset( $this->logo_file_exists ) ) {
|
46 |
foreach ( $this->logo_locations as $location ) {
|
2 |
/*
|
3 |
Plugin Name: Login Logo
|
4 |
Description: Drop a PNG file named <code>login-logo.png</code> into your <code>wp-content</code> directory. This simple plugin takes care of the rest, with zero configuration. Transparent backgrounds work best. Keep the width below 326 pixels.
|
5 |
+
Version: 0.4
|
6 |
License: GPL
|
7 |
Author: Mark Jaquith
|
8 |
Author URI: http://coveredwebservices.com/
|
31 |
if ( $site && isset( $site->id ) ) {
|
32 |
$this->logo_locations['network'] = array(
|
33 |
'path' => WP_CONTENT_DIR . '/login-logo-network-' . $site->id . '.png',
|
34 |
+
'url' => $this->maybe_ssl( WP_CONTENT_URL . '/login-logo-network-' . $site->id . '.png' )
|
35 |
);
|
36 |
}
|
37 |
}
|
38 |
$this->logo_locations['global'] = array(
|
39 |
'path' => WP_CONTENT_DIR . '/login-logo.png',
|
40 |
+
'url' => $this->maybe_ssl( WP_CONTENT_URL . '/login-logo.png' )
|
41 |
);
|
42 |
}
|
43 |
|
44 |
+
private function maybe_ssl( $url ) {
|
45 |
+
if ( is_ssl() )
|
46 |
+
$url = preg_replace( '#^http://#', 'https://', $url );
|
47 |
+
return $url;
|
48 |
+
}
|
49 |
+
|
50 |
private function logo_file_exists() {
|
51 |
if ( ! isset( $this->logo_file_exists ) ) {
|
52 |
foreach ( $this->logo_locations as $location ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://txfx.net/wordpress-plugins/donate
|
|
4 |
Tags: customize, login, login screen, logo, custom logo
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 0.
|
8 |
|
9 |
Customize the logo on the WP login screen by simply dropping a file named login-logo.png into your WP content directory. CSS is automatic!
|
10 |
|
@@ -42,6 +42,9 @@ Your image is probably too wide. Wide images are scaled down in IE 9 or other mo
|
|
42 |
|
43 |
|
44 |
== Changelog ==
|
|
|
|
|
|
|
45 |
= 0.3 =
|
46 |
* The login logo now links to your site, instead of WordPress.org
|
47 |
* If you don't have a custom login logo, the plugin does nothing.
|
@@ -54,6 +57,9 @@ Your image is probably too wide. Wide images are scaled down in IE 9 or other mo
|
|
54 |
* Original version
|
55 |
|
56 |
== Upgrade Notice ==
|
|
|
|
|
|
|
57 |
= 0.3 =
|
58 |
Makes the logo link to your site instead of WordPress.org! Support for per-network logos.
|
59 |
|
4 |
Tags: customize, login, login screen, logo, custom logo
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 0.4
|
8 |
|
9 |
Customize the logo on the WP login screen by simply dropping a file named login-logo.png into your WP content directory. CSS is automatic!
|
10 |
|
42 |
|
43 |
|
44 |
== Changelog ==
|
45 |
+
= 0.4 =
|
46 |
+
* Use HTTPS if `is_ssl()` on the login page.
|
47 |
+
|
48 |
= 0.3 =
|
49 |
* The login logo now links to your site, instead of WordPress.org
|
50 |
* If you don't have a custom login logo, the plugin does nothing.
|
57 |
* Original version
|
58 |
|
59 |
== Upgrade Notice ==
|
60 |
+
= 0.4 =
|
61 |
+
Adds support for SSL
|
62 |
+
|
63 |
= 0.3 =
|
64 |
Makes the logo link to your site instead of WordPress.org! Support for per-network logos.
|
65 |
|