From 60f6968d80a0605764c18980171b0aacc55a93e7 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 15 Apr 2014 10:56:56 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index 221f0c0813..6db2c27725 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -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 );