|
@@ 4202-4206 (lines=5) @@
|
| 4199 |
|
|
| 4200 |
|
if ( $active_state ) { |
| 4201 |
|
$titles = array(); |
| 4202 |
|
foreach ( $active_state as $mod ) { |
| 4203 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4204 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4205 |
|
} |
| 4206 |
|
} |
| 4207 |
|
if ( $titles ) { |
| 4208 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 4209 |
|
} |
|
@@ 4214-4218 (lines=5) @@
|
| 4211 |
|
|
| 4212 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 4213 |
|
$titles = array(); |
| 4214 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 4215 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4216 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4217 |
|
} |
| 4218 |
|
} |
| 4219 |
|
if ( $titles ) { |
| 4220 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 4221 |
|
} |