|
@@ 3941-3945 (lines=5) @@
|
| 3938 |
|
|
| 3939 |
|
if ( $active_state ) { |
| 3940 |
|
$titles = array(); |
| 3941 |
|
foreach ( $active_state as $mod ) { |
| 3942 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 3943 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 3944 |
|
} |
| 3945 |
|
} |
| 3946 |
|
if ( $titles ) { |
| 3947 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 3948 |
|
} |
|
@@ 3953-3957 (lines=5) @@
|
| 3950 |
|
|
| 3951 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 3952 |
|
$titles = array(); |
| 3953 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 3954 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 3955 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 3956 |
|
} |
| 3957 |
|
} |
| 3958 |
|
if ( $titles ) { |
| 3959 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 3960 |
|
} |