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