|
@@ 3806-3810 (lines=5) @@
|
| 3803 |
|
|
| 3804 |
|
if ( $active_state ) { |
| 3805 |
|
$titles = array(); |
| 3806 |
|
foreach ( $active_state as $mod ) { |
| 3807 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 3808 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 3809 |
|
} |
| 3810 |
|
} |
| 3811 |
|
if ( $titles ) { |
| 3812 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 3813 |
|
} |
|
@@ 3818-3822 (lines=5) @@
|
| 3815 |
|
|
| 3816 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 3817 |
|
$titles = array(); |
| 3818 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 3819 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 3820 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 3821 |
|
} |
| 3822 |
|
} |
| 3823 |
|
if ( $titles ) { |
| 3824 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 3825 |
|
} |