json-endpoints/jetpack/class.jetpack-json-api-core-modify-endpoint.php 1 location
|
@@ 11-19 (lines=9) @@
|
| 8 |
|
protected $new_version; |
| 9 |
|
protected $log; |
| 10 |
|
|
| 11 |
|
public function default_action() { |
| 12 |
|
$args = $this->input(); |
| 13 |
|
|
| 14 |
|
if ( isset( $args['autoupdate'] ) && is_bool( $args['autoupdate'] ) ) { |
| 15 |
|
Jetpack_Options::update_option( 'autoupdate_core', $args['autoupdate'] ); |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
return true; |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
protected function update( $version, $locale ) { |
| 22 |
|
$args = $this->input(); |
json-endpoints/jetpack/class.jetpack-json-api-translations-modify-endpoint.php 1 location
|
@@ 10-18 (lines=9) @@
|
| 7 |
|
protected $new_version; |
| 8 |
|
protected $log; |
| 9 |
|
|
| 10 |
|
public function default_action() { |
| 11 |
|
$args = $this->input(); |
| 12 |
|
|
| 13 |
|
if ( isset( $args['autoupdate'] ) && is_bool( $args['autoupdate'] ) ) { |
| 14 |
|
Jetpack_Options::update_option( 'autoupdate_translations', $args['autoupdate'] ); |
| 15 |
|
} |
| 16 |
|
|
| 17 |
|
return true; |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
protected function update() { |
| 21 |
|
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |