|
@@ 4103-4107 (lines=5) @@
|
| 4100 |
|
|
| 4101 |
|
if ( $active_state ) { |
| 4102 |
|
$titles = array(); |
| 4103 |
|
foreach ( $active_state as $mod ) { |
| 4104 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4105 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4106 |
|
} |
| 4107 |
|
} |
| 4108 |
|
if ( $titles ) { |
| 4109 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
| 4110 |
|
} |
|
@@ 4115-4119 (lines=5) @@
|
| 4112 |
|
|
| 4113 |
|
if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
| 4114 |
|
$titles = array(); |
| 4115 |
|
foreach ( explode( ',', $reactive_state ) as $mod ) { |
| 4116 |
|
if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
| 4117 |
|
$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
| 4118 |
|
} |
| 4119 |
|
} |
| 4120 |
|
if ( $titles ) { |
| 4121 |
|
$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
| 4122 |
|
} |