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
This commit is contained in:
Dion Hulse 2013-10-16 22:27:09 +00:00
parent ed07bab4b4
commit 376a0a55c7
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? // Next up, do we actually have it enabled for this type of update?
switch ( $type ) { switch ( $type ) {
case 'language': case 'language':
$upgrade = true; $upgrade = ! empty( $item->autoupdate );;
break; break;
case 'core': case 'core':
$upgrade = Core_Upgrader::should_upgrade_to_version( $item->current ); $upgrade = Core_Upgrader::should_upgrade_to_version( $item->current );