WordPress.org

Make WordPress Core

Changeset 20112


Ignore:
Timestamp:
03/04/12 12:58:41 (2 years ago)
Author:
nacin
Message:

Provide back compat for $theme->$var where $theme was an array from get_themes() but cast to an object, as had occurred in get_theme_updaes(). see #20173. see #20103.

File:
1 edited

Legend:

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

    r20105 r20112  
    293293            case 'theme_root_uri' : 
    294294                return $this->get_theme_root_uri(); 
     295            // For cases where the array was converted to an object. 
     296            default : 
     297                return $this->offsetGet( $offset ); 
    295298        } 
    296299    } 
Note: See TracChangeset for help on using the changeset viewer.