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(); |
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location
|
@@ 127-133 (lines=7) @@
|
| 124 |
|
public function default_action() { |
| 125 |
|
$args = $this->input(); |
| 126 |
|
|
| 127 |
|
if ( isset( $args['autoupdate'] ) && is_bool( $args['autoupdate'] ) ) { |
| 128 |
|
if ( $args['autoupdate'] ) { |
| 129 |
|
$this->autoupdate_on(); |
| 130 |
|
} else { |
| 131 |
|
$this->autoupdate_off(); |
| 132 |
|
} |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
if ( isset( $args['active'] ) && is_bool( $args['active'] ) ) { |
| 136 |
|
if ( $args['active'] ) { |