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:
dd32 2011-07-22 10:57:34 +00:00
parent 754bebe419
commit adbcddd6eb
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';