@@ 4225-4229 (lines=5) @@ | ||
4222 | ||
4223 | if ( $active_state ) { |
|
4224 | $titles = array(); |
|
4225 | foreach ( $active_state as $mod ) { |
|
4226 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4227 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4228 | } |
|
4229 | } |
|
4230 | if ( $titles ) { |
|
4231 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4232 | } |
|
@@ 4237-4241 (lines=5) @@ | ||
4234 | ||
4235 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4236 | $titles = array(); |
|
4237 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4238 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4239 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4240 | } |
|
4241 | } |
|
4242 | if ( $titles ) { |
|
4243 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4244 | } |