mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Cast $themes to an array to avoid a PHP Warning when there are no themes currently installed. Fixes #18213
git-svn-id: http://svn.automattic.com/wordpress/trunk@18462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
754bebe419
commit
adbcddd6eb
@ -262,7 +262,7 @@ function install_theme_information() {
|
||||
}
|
||||
|
||||
$themes = get_themes();
|
||||
foreach ( $themes as $this_theme ) {
|
||||
foreach ( (array) $themes as $this_theme ) {
|
||||
if ( is_array($this_theme) && $this_theme['Stylesheet'] == $api->slug ) {
|
||||
if ( $this_theme['Version'] == $api->version ) {
|
||||
$type = 'latest_installed';
|
||||
|
Loading…
Reference in New Issue
Block a user