|
@@ 3836-3840 (lines=5) @@
|
| 3833 |
|
|
| 3834 |
|
if ( $active_state ) { |
| 3835 |
|
$titles = array(); |
| 3836 |
|
foreach ( $active_state as $mod ) { |
| 3837 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 3838 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 3839 |
|
} |
| 3840 |
|
} |
| 3841 |
|
if ( $titles ) { |
| 3842 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 3843 |
|
} |
|
@@ 3848-3852 (lines=5) @@
|
| 3845 |
|
|
| 3846 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 3847 |
|
$titles = array(); |
| 3848 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 3849 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 3850 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 3851 |
|
} |
| 3852 |
|
} |
| 3853 |
|
if ( $titles ) { |
| 3854 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 3855 |
|
} |