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