mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
5d075505be
commit
1b84ec82cb
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user