@@ 4141-4145 (lines=5) @@ | ||
4138 | ||
4139 | if ( $active_state ) { |
|
4140 | $titles = array(); |
|
4141 | foreach ( $active_state as $mod ) { |
|
4142 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4143 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4144 | } |
|
4145 | } |
|
4146 | if ( $titles ) { |
|
4147 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4148 | } |
|
@@ 4153-4157 (lines=5) @@ | ||
4150 | ||
4151 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4152 | $titles = array(); |
|
4153 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4154 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4155 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4156 | } |
|
4157 | } |
|
4158 | if ( $titles ) { |
|
4159 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4160 | } |