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