| @@ -643,12 +643,12 @@ | ||
| 643 | 643 | return; |
| 644 | 644 | } |
| 645 | 645 | |
| 646 | 646 | foreach ($notices as $notice) { |
| 647 | - $class = 'notice notice-' . $notice['type'] . ' is-dismissible'; | |
| 647 | + $class = 'notice notice-' . esc_attr($notice['type']) . ' is-dismissible'; | |
| 648 | 648 | printf( |
| 649 | 649 | '<div class="%1$s"><p><strong>MetaSync Debug Mode:</strong> %2$s</p></div>', |
| 650 | - esc_attr($class), | |
| 650 | + $class, | |
| 651 | 651 | esc_html($notice['message']) |
| 652 | 652 | ); |
| 653 | 653 | } |
| 654 | 654 | |