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