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.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-03-04 12:58:41 +00:00
parent 5d075505be
commit 1b84ec82cb
1 changed files with 3 additions and 0 deletions

View File

@ -292,6 +292,9 @@ final class WP_Theme implements ArrayAccess {
return $this->get_theme_root();
case 'theme_root_uri' :
return $this->get_theme_root_uri();
// For cases where the array was converted to an object.
default :
return $this->offsetGet( $offset );
}
}