|
@@ 4045-4049 (lines=5) @@
|
| 4042 |
|
|
| 4043 |
|
if ( $active_state ) { |
| 4044 |
|
$titles = array(); |
| 4045 |
|
foreach ( $active_state as $mod ) { |
| 4046 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4047 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4048 |
|
} |
| 4049 |
|
} |
| 4050 |
|
if ( $titles ) { |
| 4051 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 4052 |
|
} |
|
@@ 4057-4061 (lines=5) @@
|
| 4054 |
|
|
| 4055 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 4056 |
|
$titles = array(); |
| 4057 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 4058 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4059 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4060 |
|
} |
| 4061 |
|
} |
| 4062 |
|
if ( $titles ) { |
| 4063 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 4064 |
|
} |