mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
Background Updates: Avoid a PHP warning during theme update checks when there are multiple theme directories registered. Fixes #27815
Built from https://develop.svn.wordpress.org/trunk@28137 git-svn-id: http://core.svn.wordpress.org/trunk@27968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
03d953d963
commit
ca0b5c9859
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user