json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location
|
@@ 51-57 (lines=7) @@
|
48 |
|
} |
49 |
|
} |
50 |
|
|
51 |
|
if ( isset( $args['autoupdate_translations'] ) && is_bool( $args['autoupdate_translations'] ) ) { |
52 |
|
if ( $args['autoupdate_translations'] ) { |
53 |
|
$this->autoupdate_translations_on(); |
54 |
|
} else { |
55 |
|
$this->autoupdate_translations_off(); |
56 |
|
} |
57 |
|
} |
58 |
|
|
59 |
|
return true; |
60 |
|
} |
json-endpoints/jetpack/class.jetpack-json-api-themes-modify-endpoint.php 1 location
|
@@ 20-26 (lines=7) @@
|
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(); |
23 |
|
} else { |
24 |
|
$this->autoupdate_translations_off(); |
25 |
|
} |
26 |
|
} |
27 |
|
|
28 |
|
return true; |
29 |
|
} |