@@ 4137-4141 (lines=5) @@ | ||
4134 | ||
4135 | if ( $active_state ) { |
|
4136 | $titles = array(); |
|
4137 | foreach ( $active_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 new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4144 | } |
|
@@ 4149-4153 (lines=5) @@ | ||
4146 | ||
4147 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4148 | $titles = array(); |
|
4149 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4150 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4151 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4152 | } |
|
4153 | } |
|
4154 | if ( $titles ) { |
|
4155 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4156 | } |