From 376a0a55c73f98c675c66b1eed13aee5d6e6b8a0 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 16 Oct 2013 22:27:09 +0000 Subject: [PATCH] Allow the WordPress.org Language update API to disallow automated background updates for a specific language pack. See #18200 Built from https://develop.svn.wordpress.org/trunk@25818 git-svn-id: http://core.svn.wordpress.org/trunk@25730 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 8adc220802..935687849d 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1623,7 +1623,7 @@ class WP_Automatic_Upgrader { // Next up, do we actually have it enabled for this type of update? switch ( $type ) { case 'language': - $upgrade = true; + $upgrade = ! empty( $item->autoupdate );; break; case 'core': $upgrade = Core_Upgrader::should_upgrade_to_version( $item->current );