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