WordPress.org

Make WordPress Core

Changeset 20045


Ignore:
Timestamp:
02/29/12 20:46:41 (2 years ago)
Author:
nacin
Message:

Use correct variable; return correct value for get_screenshot() when value is uncached. see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme.php

    r20044 r20045  
    459459            $this->headers_sanitized = $this->cache_get( 'headers' ); 
    460460            if ( ! is_array( $this->headers_sanitized ) ) 
    461                 $headers = array(); 
     461                $this->headers_sanitized = array(); 
    462462        } 
    463463 
     
    808808            if ( file_exists( $this->get_stylesheet_directory() . "/screenshot.$ext" ) ) { 
    809809                $this->cache_add( 'screenshot', 'screenshot.' . $ext ); 
    810                 if ( 'absolute' == $uri ) 
    811                     return $this->get_stylesheet_directory_uri() . '/' . 'screenshot.' . $ext; 
    812                 return 'screenshot.' . $ext; 
     810                if ( 'relative' == $uri ) 
     811                    return 'screenshot.' . $ext; 
     812                return $this->get_stylesheet_directory_uri() . '/' . 'screenshot.' . $ext; 
    813813            } 
    814814        } 
Note: See TracChangeset for help on using the changeset viewer.