@@ 4179-4183 (lines=5) @@ | ||
4176 | ||
4177 | if ( $active_state ) { |
|
4178 | $titles = array(); |
|
4179 | foreach ( $active_state as $mod ) { |
|
4180 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4181 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4182 | } |
|
4183 | } |
|
4184 | if ( $titles ) { |
|
4185 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4186 | } |
|
@@ 4191-4195 (lines=5) @@ | ||
4188 | ||
4189 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4190 | $titles = array(); |
|
4191 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4192 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4193 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4194 | } |
|
4195 | } |
|
4196 | if ( $titles ) { |
|
4197 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4198 | } |