diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-admin/includes/class-wp-ms-themes-list-table.php --- 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 '

' . $pre . $theme->errors()->get_error_message() . '

'; + $pre = 'broken' === $status ? '' . __( 'Broken Theme:' ) . ' ' : ''; + wp_admin_notice( + $pre . $theme->errors()->get_error_message(), + array( + 'type' => 'error', + 'additional_classes' => 'inline', + ) + ); } if ( $this->is_site_themes ) {