json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location
|
@@ 35-41 (lines=7) @@
|
| 32 |
|
public function default_action() { |
| 33 |
|
$args = $this->input(); |
| 34 |
|
|
| 35 |
|
if ( isset( $args['autoupdate'] ) && is_bool( $args['autoupdate'] ) ) { |
| 36 |
|
if ( $args['autoupdate'] ) { |
| 37 |
|
$this->autoupdate_on(); |
| 38 |
|
} else { |
| 39 |
|
$this->autoupdate_off(); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
if ( isset( $args['active'] ) && is_bool( $args['active'] ) ) { |
| 44 |
|
if ( $args['active'] ) { |
json-endpoints/jetpack/class.jetpack-json-api-themes-modify-endpoint.php 1 location
|
@@ 13-19 (lines=7) @@
|
| 10 |
|
|
| 11 |
|
public function default_action() { |
| 12 |
|
$args = $this->input(); |
| 13 |
|
if ( isset( $args['autoupdate'] ) && is_bool( $args['autoupdate'] ) ) { |
| 14 |
|
if ( $args['autoupdate'] ) { |
| 15 |
|
$this->autoupdate_on(); |
| 16 |
|
} else { |
| 17 |
|
$this->autoupdate_off(); |
| 18 |
|
} |
| 19 |
|
} |
| 20 |
|
if ( isset( $args['autoupdate_translations'] ) && is_bool( $args['autoupdate_translations'] ) ) { |
| 21 |
|
if ( $args['autoupdate_translations'] ) { |
| 22 |
|
$this->autoupdate_translations_on(); |