|
@@ 4112-4116 (lines=5) @@
|
| 4109 |
|
|
| 4110 |
|
if ( $active_state ) { |
| 4111 |
|
$titles = array(); |
| 4112 |
|
foreach ( $active_state as $mod ) { |
| 4113 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4114 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4115 |
|
} |
| 4116 |
|
} |
| 4117 |
|
if ( $titles ) { |
| 4118 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 4119 |
|
} |
|
@@ 4124-4128 (lines=5) @@
|
| 4121 |
|
|
| 4122 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 4123 |
|
$titles = array(); |
| 4124 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 4125 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4126 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4127 |
|
} |
| 4128 |
|
} |
| 4129 |
|
if ( $titles ) { |
| 4130 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 4131 |
|
} |