From 0232d1cfd80c4f881653afadc8dfc2b8d29c0036 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 12 Sep 2013 00:03:10 +0000 Subject: [PATCH] Fix invalid markup when searching for installed themes. fixes #25288. Built from https://develop.svn.wordpress.org/trunk@25369 git-svn-id: http://core.svn.wordpress.org/trunk@25319 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-themes-list-table.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index a9a696882d..d49d9930b9 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -114,6 +114,16 @@ class WP_Themes_List_Table extends WP_List_Table { return array(); } + function display_rows_or_placeholder() { + if ( $this->has_items() ) { + $this->display_rows(); + } else { + echo '
'; + $this->no_items(); + echo '
'; + } + } + function display_rows() { $themes = $this->items;