@@ -114,6+114,16 @@ class WP_Themes_List_Table extends WP_List_Table {
return array();
}
return array();
}
+ function display_rows_or_placeholder() {
+ if ( $this->has_items() ) {
+ $this->display_rows();
+ } else {
+ echo '<div class="no-items">';
+ $this->no_items();
+ echo '</div>';
+ }
+ }
+
function display_rows() {
$themes = $this->items;
function display_rows() {
$themes = $this->items;
@@ -148,7+158,11 @@ class WP_Themes_List_Table extends WP_List_Table {
. '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $title ) )
. "' );" . '">' . __( 'Delete' ) . '</a>';
. '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $title ) )
. "' );" . '">' . __( 'Delete' ) . '</a>';
+ /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */