|
@@ 624-627 (lines=4) @@
|
| 621 |
|
|
| 622 |
|
// If this is a module option and the related module isn't active for any reason, continue with the next one. |
| 623 |
|
if ( 'settings' !== $option_attrs['jp_group'] ) { |
| 624 |
|
if ( ! Jetpack::is_module( $option_attrs['jp_group'] ) ) { |
| 625 |
|
$not_updated[ $option ] = esc_html__( 'The requested Jetpack module was not found.', 'jetpack' ); |
| 626 |
|
continue; |
| 627 |
|
} |
| 628 |
|
|
| 629 |
|
if ( |
| 630 |
|
'any' !== $request['slug'] |
|
@@ 629-637 (lines=9) @@
|
| 626 |
|
continue; |
| 627 |
|
} |
| 628 |
|
|
| 629 |
|
if ( |
| 630 |
|
'any' !== $request['slug'] |
| 631 |
|
&& ! Jetpack::is_module_active( $option_attrs['jp_group'] ) |
| 632 |
|
) { |
| 633 |
|
|
| 634 |
|
// We only take note of skipped options when updating one module |
| 635 |
|
$not_updated[ $option ] = esc_html__( 'The requested Jetpack module is inactive.', 'jetpack' ); |
| 636 |
|
continue; |
| 637 |
|
} |
| 638 |
|
} |
| 639 |
|
|
| 640 |
|
// Properly cast value based on its type defined in endpoint accepted args. |