Allow the WordPress.org Language update API to disallow automated background updates for a specific language pack. See #18200

git-svn-id: https://develop.svn.wordpress.org/trunk@25818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2013-10-16 22:26:47 +00:00
parent 853c9a50bd
commit d5aba84213
1 changed files with 1 additions and 1 deletions

View File

@ -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 );