Cast $themes to an array to avoid a PHP Warning when there are no themes currently installed. Fixes #18213
git-svn-id: https://develop.svn.wordpress.org/trunk@18462 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
685221ec7d
commit
4429d66a15
@ -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