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