WordPress.org

Plugin Directory

Changeset 562220 for login-logo


Ignore:
Timestamp:
06/22/12 07:42:26 (22 months ago)
Author:
markjaquith
Message:

Use filemtime()-based URL versioning for the login logo, so that browser caches are invalidated when the file changes.

Location:
login-logo/trunk
Files:
2 edited

Legend:

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

    r545887 r562220  
    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.7-beta-1 
     5Version: 0.7-beta-2 
    66License: GPL 
    77Plugin URI: http://txfx.net/wordpress-plugins/login-logo/ 
     
    9494    private function get_location( $what = '' ) { 
    9595        if ( $this->logo_file_exists() ) { 
    96             if ( 'path' == $what || 'url' == $what ) 
     96            if ( 'path' == $what ) 
    9797                return $this->logo_location[$what]; 
     98            elseif ( 'url' == $what ) 
     99                return $this->logo_location[$what] . '?v=' . filemtime( $this->logo_location['path'] ); 
    98100            else 
    99101                return $this->logo_location; 
  • login-logo/trunk/readme.txt

    r545887 r562220  
    4747 
    4848= 0.7 = 
    49 * The "title" attribute of the header link matches the WordPress site title instead of saying "Powered by WordPress" 
     49* The "title" attribute of the header link matches the WordPress site title instead of saying "Powered by WordPress". 
     50* The URL for the login logo includes "versioning" based on last file modification date, for browser cache flushing. 
    5051 
    5152= 0.6 = 
Note: See TracChangeset for help on using the changeset viewer.