WordPress.org

Plugin Directory

Changeset 545887 for login-logo/trunk


Ignore:
Timestamp:
05/18/12 16:57:14 (2 years ago)
Author:
markjaquith
Message:

Have the login logo "title" attribute be the WordPress site title instead of "Powered by WordPress".

Location:
login-logo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • login-logo/trunk/login-logo.php

    r535334 r545887  
    33Plugin Name: Login Logo 
    44Description: 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. Crop it tight, with a width of 312 pixels, for best results. 
    5 Version: 0.6 
     5Version: 0.7-beta-1 
    66License: GPL 
    77Plugin URI: http://txfx.net/wordpress-plugins/login-logo/ 
     
    152152 
    153153    public function login_headerurl() { 
    154         return trailingslashit( get_bloginfo( 'url' ) ); 
     154        return esc_url( trailingslashit( get_bloginfo( 'url' ) ) ); 
     155    } 
     156 
     157    public function login_headertitle() { 
     158        return esc_attr( get_bloginfo( 'name' ) ); 
    155159    } 
    156160 
     
    160164            return; 
    161165        add_filter( 'login_headerurl', array( $this, 'login_headerurl' ) ); 
     166        add_filter( 'login_headertitle', array( $this, 'login_headertitle' ) ); 
    162167    ?> 
    163168    <!-- Login Logo plugin for WordPress: http://txfx.net/wordpress-plugins/login-logo/ --> 
  • login-logo/trunk/readme.txt

    r535336 r545887  
    4646== Changelog == 
    4747 
     48= 0.7 = 
     49* The "title" attribute of the header link matches the WordPress site title instead of saying "Powered by WordPress" 
     50 
    4851= 0.6 = 
    4952* You can provide `login-logo-site-{$blog_id}.png` to have a different logo per multisite site. 
Note: See TracChangeset for help on using the changeset viewer.