@@ 4127-4131 (lines=5) @@ | ||
4124 | ||
4125 | if ( $active_state ) { |
|
4126 | $titles = array(); |
|
4127 | foreach ( $active_state as $mod ) { |
|
4128 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4129 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4130 | } |
|
4131 | } |
|
4132 | if ( $titles ) { |
|
4133 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles ); |
|
4134 | } |
|
@@ 4139-4143 (lines=5) @@ | ||
4136 | ||
4137 | if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) { |
|
4138 | $titles = array(); |
|
4139 | foreach ( explode( ',', $reactive_state ) as $mod ) { |
|
4140 | if ( $mod_headers = Jetpack::get_module( $mod ) ) { |
|
4141 | $titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', ' ', $mod_headers['name'] ) . '</strong>'; |
|
4142 | } |
|
4143 | } |
|
4144 | if ( $titles ) { |
|
4145 | $this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles ); |
|
4146 | } |