A search for ‘0’ returns results
Considering @Mayeenul Islam comment: I’ve just tested in a blank theme with dummy data, search with 0 (zero) fired an empty search – that means all: SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type IN (‘post’, ‘page’, ‘attachment’) AND (wp_posts.post_status=”publish”) ORDER BY wp_posts.post_date DESC LIMIT 0, 10 and the fact that wp-includes/query.php contains if … Read more