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