@@ 577-580 (lines=4) @@ | ||
574 | ||
575 | // If this is a module option and the related module isn't active for any reason, continue with the next one. |
|
576 | if ( 'settings' !== $option_attrs['jp_group'] ) { |
|
577 | if ( ! Jetpack::is_module( $option_attrs['jp_group'] ) ) { |
|
578 | $not_updated[ $option ] = esc_html__( 'The requested Jetpack module was not found.', 'jetpack' ); |
|
579 | continue; |
|
580 | } |
|
581 | ||
582 | if ( |
|
583 | 'any' !== $request['slug'] |
|
@@ 582-590 (lines=9) @@ | ||
579 | continue; |
|
580 | } |
|
581 | ||
582 | if ( |
|
583 | 'any' !== $request['slug'] |
|
584 | && ! Jetpack::is_module_active( $option_attrs['jp_group'] ) |
|
585 | ) { |
|
586 | ||
587 | // We only take note of skipped options when updating one module |
|
588 | $not_updated[ $option ] = esc_html__( 'The requested Jetpack module is inactive.', 'jetpack' ); |
|
589 | continue; |
|
590 | } |
|
591 | } |
|
592 | ||
593 | // Properly cast value based on its type defined in endpoint accepted args. |