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:
parent
42747be0b2
commit
60f6968d80
|
@ -1962,7 +1962,7 @@ class WP_Automatic_Updater {
|
||||||
break;
|
break;
|
||||||
case 'theme':
|
case 'theme':
|
||||||
$upgrader = new Theme_Upgrader( $skin );
|
$upgrader = new Theme_Upgrader( $skin );
|
||||||
$context = get_theme_root( $item );
|
$context = get_theme_root( $item->theme );
|
||||||
break;
|
break;
|
||||||
case 'translation':
|
case 'translation':
|
||||||
$upgrader = new Language_Pack_Upgrader( $skin );
|
$upgrader = new Language_Pack_Upgrader( $skin );
|
||||||
|
|
Loading…
Reference in New Issue