=correct DOING_AJAX define, fix closing ) on redirection if block