@@ 3738-3742 (lines=5) @@ | ||
3735 | ||
3736 | if ( $active_state ) { |
|
3737 | $titles = array(); |
|
3738 | foreach ( $active_state as $mod ) { |
|
3739 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3740 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3741 | } |
|
3742 | } |
|
3743 | if ( $titles ) { |
|
3744 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
3745 | } |
|
@@ 3750-3754 (lines=5) @@ | ||
3747 | ||
3748 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
3749 | $titles = array(); |
|
3750 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
3751 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3752 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3753 | } |
|
3754 | } |
|
3755 | if ( $titles ) { |
|
3756 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
3757 | } |