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