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