fixing ajax requests when post_status is set to any