Uber Login Logo - Version 1.5.1

Version Description

Download this release

Release Info

Developer uberweb
Plugin Icon wp plugin Uber Login Logo
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5.0 to 1.5.1

Files changed (3) hide show
  1. readme.txt +5 -2
  2. uber-login-logo-min.js +1 -1
  3. uber-login-logo.php +4 -4
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: uberweb
3
  Tags: login, logo, login logo, admin, customisation, customization, branding, custom login, media uploader, AJAX, wp-login
4
  Requires at least: 3.5
5
- Tested up to: 3.9
6
- Stable tag: 1.5.0
7
 
8
  A simple, lightweight WordPress plugin to change your login logo.
9
 
@@ -37,6 +37,9 @@ As of 0.5 This plugin makes use of the new media editor introduced in WordPress
37
 
38
  == Changelog ==
39
 
 
 
 
40
  = version 1.5.0 =
41
 
42
  * fix errors associated with new underscorejs version
2
  Contributors: uberweb
3
  Tags: login, logo, login logo, admin, customisation, customization, branding, custom login, media uploader, AJAX, wp-login
4
  Requires at least: 3.5
5
+ Tested up to: 4.0
6
+ Stable tag: 1.5.1
7
 
8
  A simple, lightweight WordPress plugin to change your login logo.
9
 
37
 
38
  == Changelog ==
39
 
40
+ = version 1.5.1 =
41
+ * compatible with WP 4.0
42
+
43
  = version 1.5.0 =
44
 
45
  * fix errors associated with new underscorejs version
uber-login-logo-min.js CHANGED
@@ -1,5 +1,5 @@
1
  var Uber=Uber||{};
2
- (function(d,f,g,h){Uber.LoginLogo={config:{version:"1.5.0",nonce:null,editor:null,selectedId:0},elems:{$container:".uber-login-logo",$uploadTrigger:".upload-image",$uploadInput:"#upload-input",$nonceInput:"#uber_login_logo_nonce",$updateStatus:".update-status",$imgHolder:".img-holder",$imgPreview:".img-preview"},init:function(){Uber.Tools.setElems(this.elems,this);if(Uber.Tools.doesElemExist(this.elems.$container)){_.bindAll(this,"setEditor","setNonce","getOptions","updateOptions","showImagePreview",
3
  "preSelectImage","catchInsert");this.setNonce();this.setEditor();this.getOptions();this.catchInsert();var a=this;this.elems.$uploadTrigger.on("click",function(){a.config.editor.open();return!1});this.config.editor.on("open",this.preSelectImage)}},setEditor:function(){this.config.editor=wp.media.editor.add("content")},setNonce:function(){this.config.nonce=this.elems.$nonceInput.val()},getOptions:function(){var a=this;d.ajax({url:ajaxurl,type:"post",dataType:"json",data:{action:"displayPreviewImg",
4
  uber_login_logo_nonce:this.config.nonce}}).done(function(b){a.showImagePreview(b)})},updateOptions:function(a,b){var c=this;d.ajax({url:ajaxurl,type:"post",dataType:"json",data:{action:"getImageData",id:a,size:b,uber_login_logo_nonce:this.config.nonce}}).done(function(a){c.showImagePreview(a);c.elems.$updateStatus.show()})},showImagePreview:function(a){this.elems.$uploadInput.val(a.src);this.elems.$imgPreview.html('<img src="'+a.src+'" />');this.elems.$imgHolder.show();this.config.selectedId=a.id},
5
  preSelectImage:function(){var a=this.config.editor.state().get("selection"),b=wp.media.attachment(this.config.selectedId);b.fetch();a.add(b?[b]:[])},catchInsert:function(){var a=this;wp.media.editor.send.attachment=function(b,c){a.updateOptions(c.id,b.size)}}};Uber.Tools={setElems:function(a,b,c){b.elems=b.elems||{};for(var e in a)b.elems[e]=c?c.find(a[e]):d(a[e])},doesElemExist:function(a){return"undefined"!==typeof a&&a.length}};d(function(){Uber.LoginLogo.init()})})(jQuery,window,document);
1
  var Uber=Uber||{};
2
+ (function(d,f,g,h){Uber.LoginLogo={config:{version:"1.5.1",nonce:null,editor:null,selectedId:0},elems:{$container:".uber-login-logo",$uploadTrigger:".upload-image",$uploadInput:"#upload-input",$nonceInput:"#uber_login_logo_nonce",$updateStatus:".update-status",$imgHolder:".img-holder",$imgPreview:".img-preview"},init:function(){Uber.Tools.setElems(this.elems,this);if(Uber.Tools.doesElemExist(this.elems.$container)){_.bindAll(this,"setEditor","setNonce","getOptions","updateOptions","showImagePreview",
3
  "preSelectImage","catchInsert");this.setNonce();this.setEditor();this.getOptions();this.catchInsert();var a=this;this.elems.$uploadTrigger.on("click",function(){a.config.editor.open();return!1});this.config.editor.on("open",this.preSelectImage)}},setEditor:function(){this.config.editor=wp.media.editor.add("content")},setNonce:function(){this.config.nonce=this.elems.$nonceInput.val()},getOptions:function(){var a=this;d.ajax({url:ajaxurl,type:"post",dataType:"json",data:{action:"displayPreviewImg",
4
  uber_login_logo_nonce:this.config.nonce}}).done(function(b){a.showImagePreview(b)})},updateOptions:function(a,b){var c=this;d.ajax({url:ajaxurl,type:"post",dataType:"json",data:{action:"getImageData",id:a,size:b,uber_login_logo_nonce:this.config.nonce}}).done(function(a){c.showImagePreview(a);c.elems.$updateStatus.show()})},showImagePreview:function(a){this.elems.$uploadInput.val(a.src);this.elems.$imgPreview.html('<img src="'+a.src+'" />');this.elems.$imgHolder.show();this.config.selectedId=a.id},
5
  preSelectImage:function(){var a=this.config.editor.state().get("selection"),b=wp.media.attachment(this.config.selectedId);b.fetch();a.add(b?[b]:[])},catchInsert:function(){var a=this;wp.media.editor.send.attachment=function(b,c){a.updateOptions(c.id,b.size)}}};Uber.Tools={setElems:function(a,b,c){b.elems=b.elems||{};for(var e in a)b.elems[e]=c?c.find(a[e]):d(a[e])},doesElemExist:function(a){return"undefined"!==typeof a&&a.length}};d(function(){Uber.LoginLogo.init()})})(jQuery,window,document);
uber-login-logo.php CHANGED
@@ -6,7 +6,7 @@
6
  * @link http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
7
  *
8
  * @author Alex Rogers
9
- * @version 1.5.0
10
  * @package Uber_Login_Logo
11
  */
12
 
@@ -14,7 +14,7 @@
14
  Plugin Name: Uber Login Logo
15
  Plugin URI: http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
16
  Description: Change your login logo.
17
- Version: 1.5.0
18
  Author: UberWeb
19
  Author URI: http://www.uberweb.com.au/
20
  Text Domain: uber-login-logo
@@ -40,7 +40,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40
 
41
  //Enable the plugin for the init hook, but only if WP is loaded. Calling this php file directly will do nothing.
42
  if(defined('ABSPATH') && defined('WPINC')) {
43
- add_action("init",array("UberLoginLogo","init"),9);
44
  }
45
 
46
  /**
@@ -56,7 +56,7 @@ class UberLoginLogo
56
  /**
57
  * @const VERSION The current plugin version
58
  */
59
- const VERSION = '1.5.0';
60
 
61
  /**
62
  * @const UBERURL Link to uberweb site
6
  * @link http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
7
  *
8
  * @author Alex Rogers
9
+ * @version 1.5.1
10
  * @package Uber_Login_Logo
11
  */
12
 
14
  Plugin Name: Uber Login Logo
15
  Plugin URI: http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
16
  Description: Change your login logo.
17
+ Version: 1.5.1
18
  Author: UberWeb
19
  Author URI: http://www.uberweb.com.au/
20
  Text Domain: uber-login-logo
40
 
41
  //Enable the plugin for the init hook, but only if WP is loaded. Calling this php file directly will do nothing.
42
  if(defined('ABSPATH') && defined('WPINC')) {
43
+ add_action("wp_loaded",array("UberLoginLogo","init"));
44
  }
45
 
46
  /**
56
  /**
57
  * @const VERSION The current plugin version
58
  */
59
+ const VERSION = '1.5.1';
60
 
61
  /**
62
  * @const UBERURL Link to uberweb site