--- a/wp/wp-admin/includes/class-wp-ms-themes-list-table.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-admin/includes/class-wp-ms-themes-list-table.php Fri Sep 05 18:52:52 2025 +0200
@@ -494,6 +494,9 @@
}
/**
+ * Generates the list table rows.
+ *
+ * @since 3.1.0
*/
public function display_rows() {
foreach ( $this->items as $theme ) {
@@ -701,8 +704,14 @@
global $status, $totals;
if ( $theme->errors() ) {
- $pre = 'broken' === $status ? __( 'Broken Theme:' ) . ' ' : '';
- echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
+ $pre = 'broken' === $status ? '<strong class="error-message">' . __( 'Broken Theme:' ) . '</strong> ' : '';
+ wp_admin_notice(
+ $pre . $theme->errors()->get_error_message(),
+ array(
+ 'type' => 'error',
+ 'additional_classes' => 'inline',
+ )
+ );
}
if ( $this->is_site_themes ) {