summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2017-03-07 20:49:57 -0500
committerYury German <blueknight@gentoo.org>2017-03-07 20:49:57 -0500
commit4aef42856734c8d67b06814ff6c97b101869836b (patch)
treedd94b6858923fa285673285940bcd74be3bb5eb9 /plugins/jetpack/class.jetpack-autoupdate.php
parentUpdate plugin wordpress-mobile-pack 2.2.8 (diff)
downloadblogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.tar.gz
blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.tar.bz2
blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.zip
Jetpack upgrade 4.7
Diffstat (limited to 'plugins/jetpack/class.jetpack-autoupdate.php')
-rw-r--r--plugins/jetpack/class.jetpack-autoupdate.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jetpack/class.jetpack-autoupdate.php b/plugins/jetpack/class.jetpack-autoupdate.php
index c118dd5b..5b540d09 100644
--- a/plugins/jetpack/class.jetpack-autoupdate.php
+++ b/plugins/jetpack/class.jetpack-autoupdate.php
@@ -52,6 +52,11 @@ class Jetpack_Autoupdate {
}
public function autoupdate_translation( $update, $item ) {
+ // Autoupdate all translations
+ if ( Jetpack_Options::get_option( 'autoupdate_translations', false ) ) {
+ return true;
+ }
+
// Themes
$autoupdate_themes_translations = Jetpack_Options::get_option( 'autoupdate_themes_translations', array() );
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() );