Fix empty search in WordPress