|
@@ 4181-4185 (lines=5) @@
|
| 4178 |
|
|
| 4179 |
|
if ( $active_state ) { |
| 4180 |
|
$titles = array(); |
| 4181 |
|
foreach ( $active_state as $mod ) { |
| 4182 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4183 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4184 |
|
} |
| 4185 |
|
} |
| 4186 |
|
if ( $titles ) { |
| 4187 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 4188 |
|
} |
|
@@ 4193-4197 (lines=5) @@
|
| 4190 |
|
|
| 4191 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 4192 |
|
$titles = array(); |
| 4193 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 4194 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4195 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4196 |
|
} |
| 4197 |
|
} |
| 4198 |
|
if ( $titles ) { |
| 4199 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 4200 |
|
} |