@@ 3826-3830 (lines=5) @@ | ||
3823 | ||
3824 | if ( $active_state ) { |
|
3825 | $titles = array(); |
|
3826 | foreach ( $active_state as $mod ) { |
|
3827 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3828 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3829 | } |
|
3830 | } |
|
3831 | if ( $titles ) { |
|
3832 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
3833 | } |
|
@@ 3838-3842 (lines=5) @@ | ||
3835 | ||
3836 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
3837 | $titles = array(); |
|
3838 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
3839 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3840 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3841 | } |
|
3842 | } |
|
3843 | if ( $titles ) { |
|
3844 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
3845 | } |