@@ 4075-4079 (lines=5) @@ | ||
4072 | ||
4073 | if ( $active_state ) { |
|
4074 | $titles = array(); |
|
4075 | foreach ( $active_state as $mod ) { |
|
4076 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4077 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4078 | } |
|
4079 | } |
|
4080 | if ( $titles ) { |
|
4081 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4082 | } |
|
@@ 4087-4091 (lines=5) @@ | ||
4084 | ||
4085 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4086 | $titles = array(); |
|
4087 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4088 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4089 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4090 | } |
|
4091 | } |
|
4092 | if ( $titles ) { |
|
4093 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4094 | } |