@@ 4125-4129 (lines=5) @@ | ||
4122 | ||
4123 | if ( $active_state ) { |
|
4124 | $titles = array(); |
|
4125 | foreach ( $active_state as $mod ) { |
|
4126 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4127 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4128 | } |
|
4129 | } |
|
4130 | if ( $titles ) { |
|
4131 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4132 | } |
|
@@ 4137-4141 (lines=5) @@ | ||
4134 | ||
4135 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4136 | $titles = array(); |
|
4137 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4138 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4139 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4140 | } |
|
4141 | } |
|
4142 | if ( $titles ) { |
|
4143 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4144 | } |