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:
parent
ed07bab4b4
commit
376a0a55c7
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue