Add Logo to Admin - Version 1.3.1

Version Description

Download this release

Release Info

Developer tinkerpriest
Plugin Icon wp plugin Add Logo to Admin
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3 to 1.3.1

Files changed (2) hide show
  1. add-logo.php +6 -5
  2. readme.txt +6 -1
add-logo.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Add Logo to Admin
4
Plugin URI: http://bavotasan.com/tidbits/add-your-logo-to-the-wordpress-admin-and-login-page/
5
Description: Adds a custom logo to your site's Admin header and your login page.
6
Author: c.bavota
7
- Version: 1.3
8
Author URI: http://bavotasan.com
9
*/
10
@@ -30,10 +30,11 @@ function add_logo_init() {
30
31
if ($_FILES["file"]["type"]){
32
$directory = dirname(__FILE__) . "/images/";
33
move_uploaded_file($_FILES["file"]["tmp_name"],
34
- $directory . $_FILES["file"]["name"]);
35
- update_option('add_logo_logo', get_option('siteurl'). "/wp-content/plugins/add-logo-to-admin/images/". $_FILES["file"]["name"]);
36
- update_option('add_logo_filename', $_FILES["file"]["name"]);
37
}
38
39
if($_REQUEST['add_logo_on_login']) {
@@ -199,4 +200,4 @@ function print_add_logo_form() {
199
<!-- Add Logo to Admin admin box end-->
200
<?php
201
}
202
- ?>
4
Plugin URI: http://bavotasan.com/tidbits/add-your-logo-to-the-wordpress-admin-and-login-page/
5
Description: Adds a custom logo to your site's Admin header and your login page.
6
Author: c.bavota
7
+ Version: 1.3.1
8
Author URI: http://bavotasan.com
9
*/
10
30
31
if ($_FILES["file"]["type"]){
32
$directory = dirname(__FILE__) . "/images/";
33
+ $image = str_replace(" ", "-", $_FILES["file"]["name"]);
34
move_uploaded_file($_FILES["file"]["tmp_name"],
35
+ $directory . $image);
36
+ update_option('add_logo_logo', get_option('siteurl'). "/wp-content/plugins/add-logo-to-admin/images/". $image);
37
+ update_option('add_logo_filename', $image);
38
}
39
40
if($_REQUEST['add_logo_on_login']) {
200
<!-- Add Logo to Admin admin box end-->
201
<?php
202
}
203
+ ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
Tags: custom logo, admin, login
5
Requires at least: 2.7
6
Tested up to: 2.7.1
7
- Stable tag: 1.3
8
9
Add a custom logo to your Admin header and to your login page.
10
@@ -36,6 +36,11 @@ You can make it any width or height, as well as any file format.
36
37
== Change Log ==
38
39
1.3 (2009-02-25)
40
<ul>
41
<li>Created uploader for logos</li>
4
Tags: custom logo, admin, login
5
Requires at least: 2.7
6
Tested up to: 2.7.1
7
+ Stable tag: 1.3.1
8
9
Add a custom logo to your Admin header and to your login page.
10
36
37
== Change Log ==
38
39
+ 1.3.1 (2009-02-26)
40
+ <ul>
41
+ <li>Fixed issue with spaces in filename</li>
42
+ </ul>
43
+
44
1.3 (2009-02-25)
45
<ul>
46
<li>Created uploader for logos</li>