json-endpoints/jetpack/class.jetpack-json-api-modules-modify-endpoint.php 1 location
|
@@ 13-19 (lines=7) @@
|
| 10 |
|
|
| 11 |
|
public function default_action() { |
| 12 |
|
$args = $this->input(); |
| 13 |
|
if ( isset( $args['active'] ) && is_bool( $args['active'] ) ) { |
| 14 |
|
if ( $args['active'] ) { |
| 15 |
|
return $this->activate_module(); |
| 16 |
|
} else { |
| 17 |
|
return $this->deactivate_module(); |
| 18 |
|
} |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return true; |
| 22 |
|
} |
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location
|
@@ 43-49 (lines=7) @@
|
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
if ( isset( $args['active'] ) && is_bool( $args['active'] ) ) { |
| 44 |
|
if ( $args['active'] ) { |
| 45 |
|
return $this->activate(); |
| 46 |
|
} else { |
| 47 |
|
return $this->deactivate(); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
if ( isset( $args['autoupdate_translations'] ) && is_bool( $args['autoupdate_translations'] ) ) { |
| 52 |
|
if ( $args['autoupdate_translations'] ) { |