@@ 3846-3850 (lines=5) @@ | ||
3843 | ||
3844 | if ( $active_state ) { |
|
3845 | $titles = array(); |
|
3846 | foreach ( $active_state as $mod ) { |
|
3847 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3848 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3849 | } |
|
3850 | } |
|
3851 | if ( $titles ) { |
|
3852 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
3853 | } |
|
@@ 3858-3862 (lines=5) @@ | ||
3855 | ||
3856 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
3857 | $titles = array(); |
|
3858 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
3859 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
3860 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
3861 | } |
|
3862 | } |
|
3863 | if ( $titles ) { |
|
3864 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
3865 | } |