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