mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-03 19:41:39 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user