Background Updates: Avoid a PHP warning during theme update checks when there are multiple theme directories registered. Fixes #27815

git-svn-id: https://develop.svn.wordpress.org/trunk@28137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2014-04-15 10:56:56 +00:00
parent 42747be0b2
commit 60f6968d80
1 changed files with 1 additions and 1 deletions

View File

@ -1962,7 +1962,7 @@ class WP_Automatic_Updater {
break;
case 'theme':
$upgrader = new Theme_Upgrader( $skin );
$context = get_theme_root( $item );
$context = get_theme_root( $item->theme );
break;
case 'translation':
$upgrader = new Language_Pack_Upgrader( $skin );