| @@ -325,9 +325,9 @@ | ||
| 325 | 325 | * @param bool $has_print since 4.2.7.6, true for print, false for return |
| 326 | 326 | * |
| 327 | 327 | * @return void|string |
| 328 | 328 | * @since 4.2.6.9.3 |
| 329 | - * @version 1.0.2 | |
| 329 | + * @version 1.0.3 | |
| 330 | 330 | */ |
| 331 | 331 | public static function print_message( string $message, string $status = 'success', bool $has_print = true ) { |
| 332 | 332 | if ( empty( $message ) ) { |
| 333 | 333 | if ( $has_print ) { |
| @@ -338,9 +338,12 @@ | ||
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | $section = [ |
| 341 | 341 | 'wrapper' => sprintf( '<div class="learn-press-message %s">', esc_attr( $status ) ), |
| 342 | - 'content' => wp_kses_post( $message ), | |
| 342 | + 'content' => sprintf( | |
| 343 | + '<div>%s</div>', | |
| 344 | + wp_kses_post( $message ) | |
| 345 | + ), | |
| 343 | 346 | 'wrapper_end' => '</div>', |
| 344 | 347 | ]; |
| 345 | 348 | |
| 346 | 349 | if ( $has_print ) { |