@@ 4151-4155 (lines=5) @@ | ||
4148 | ||
4149 | if ( $active_state ) { |
|
4150 | $titles = array(); |
|
4151 | foreach ( $active_state as $mod ) { |
|
4152 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4153 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4154 | } |
|
4155 | } |
|
4156 | if ( $titles ) { |
|
4157 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4158 | } |
|
@@ 4163-4167 (lines=5) @@ | ||
4160 | ||
4161 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4162 | $titles = array(); |
|
4163 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4164 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4165 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4166 | } |
|
4167 | } |
|
4168 | if ( $titles ) { |
|
4169 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4170 | } |