@@ 4205-4209 (lines=5) @@ | ||
4202 | ||
4203 | if ( $active_state ) { |
|
4204 | $titles = array(); |
|
4205 | foreach ( $active_state as $mod ) { |
|
4206 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4207 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4208 | } |
|
4209 | } |
|
4210 | if ( $titles ) { |
|
4211 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4212 | } |
|
@@ 4217-4221 (lines=5) @@ | ||
4214 | ||
4215 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4216 | $titles = array(); |
|
4217 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4218 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4219 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4220 | } |
|
4221 | } |
|
4222 | if ( $titles ) { |
|
4223 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4224 | } |