diff options
author | Yury German <blueknight@gentoo.org> | 2017-05-05 17:29:26 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2017-05-05 17:29:26 -0400 |
commit | a751233efc6e756083926dfaeaf6eefe718b5f76 (patch) | |
tree | 83373c83696d56ab1f0a91615236b2e7b7674477 /plugins/jetpack/json-endpoints/jetpack | |
parent | Update wordpress-mobile-pack 2.2.10 (diff) | |
download | blogs-gentoo-a751233efc6e756083926dfaeaf6eefe718b5f76.tar.gz blogs-gentoo-a751233efc6e756083926dfaeaf6eefe718b5f76.tar.bz2 blogs-gentoo-a751233efc6e756083926dfaeaf6eefe718b5f76.zip |
Update Aksimet v3.3.1, Jetpack v 4.9, Public Post Preview v 2.6.0
Diffstat (limited to 'plugins/jetpack/json-endpoints/jetpack')
-rw-r--r-- | plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php index 2e675f7f..22394029 100644 --- a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php +++ b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php @@ -200,8 +200,8 @@ class Jetpack_JSON_API_Plugins_Modify_Endpoint extends Jetpack_JSON_API_Plugins_ $upgrader = new Plugin_Upgrader( $skin ); $upgrader->init(); // This avoids the plugin to be deactivated. - defined( 'DOING_CRON' ) or define( 'DOING_CRON', true ); - $result = $upgrader->upgrade( $plugin ); + // Using bulk upgrade puts the site into maintenance mode during the upgrades + $result = $upgrader->bulk_upgrade( array( $plugin ) ); $this->log[ $plugin ] = $upgrader->skin->get_upgrade_messages(); } |