@@ 607-610 (lines=4) @@ | ||
604 | ||
605 | // If this is a module option and the related module isn't active for any reason, continue with the next one. |
|
606 | if ( 'settings' !== $option_attrs['jp_group'] ) { |
|
607 | if ( ! Jetpack::is_module( $option_attrs['jp_group'] ) ) { |
|
608 | $not_updated[ $option ] = esc_html__( 'The requested Jetpack module was not found.', 'jetpack' ); |
|
609 | continue; |
|
610 | } |
|
611 | ||
612 | if ( |
|
613 | 'any' !== $request['slug'] |
|
@@ 612-620 (lines=9) @@ | ||
609 | continue; |
|
610 | } |
|
611 | ||
612 | if ( |
|
613 | 'any' !== $request['slug'] |
|
614 | && ! Jetpack::is_module_active( $option_attrs['jp_group'] ) |
|
615 | ) { |
|
616 | ||
617 | // We only take note of skipped options when updating one module |
|
618 | $not_updated[ $option ] = esc_html__( 'The requested Jetpack module is inactive.', 'jetpack' ); |
|
619 | continue; |
|
620 | } |
|
621 | } |
|
622 | ||
623 | // Properly cast value based on its type defined in endpoint accepted args. |