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:
Dion Hulse 2011-07-22 10:57:34 +00:00
parent 685221ec7d
commit 4429d66a15
1 changed files with 1 additions and 1 deletions

View File

@ -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';