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:
parent
853c9a50bd
commit
d5aba84213
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user