Handle no results
This commit is contained in:
parent
6047322c52
commit
59d38b5a85
|
@ -456,7 +456,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
|
|||
if ( isset( $query_vars['s'] ) ) {
|
||||
$data_store = WC_Data_Store::load( 'product' );
|
||||
$ids = $data_store->search_products( wc_clean( $query_vars['s'] ), '', true );
|
||||
$query_vars['post__in'] = $ids;
|
||||
$query_vars['post__in'] = array_merge( $ids, array( 0 ) );
|
||||
}
|
||||
|
||||
return $query_vars;
|
||||
|
|
Loading…
Reference in New Issue