@@ 3987-3991 (lines=5) @@ | ||
3984 | ||
3985 | if ( $active_state ) { |
|
3986 | $titles = array(); |
|
3987 | foreach ( $active_state as $mod ) { |
|
3988 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3989 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3990 | } |
|
3991 | } |
|
3992 | if ( $titles ) { |
|
3993 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
3994 | } |
|
@@ 3999-4003 (lines=5) @@ | ||
3996 | ||
3997 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
3998 | $titles = array(); |
|
3999 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4000 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4001 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4002 | } |
|
4003 | } |
|
4004 | if ( $titles ) { |
|
4005 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4006 | } |