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