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