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