@@ 4233-4237 (lines=5) @@ | ||
4230 | ||
4231 | if ( $active_state ) { |
|
4232 | $titles = array(); |
|
4233 | foreach ( $active_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 new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4240 | } |
|
@@ 4245-4249 (lines=5) @@ | ||
4242 | ||
4243 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4244 | $titles = array(); |
|
4245 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4246 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4247 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4248 | } |
|
4249 | } |
|
4250 | if ( $titles ) { |
|
4251 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4252 | } |