Third-party AJAX requests not detected #1327
Labels
bug
Something isn't working, reproducible
core
Core functionalities, including the admin section
severity: major
Major functionality
Checking
wp_doing_ajax()
is only a partial check that is valid for WordPress Ajax requests, but not for all the other plugins.This HTTP variable should be checked:
HTTP_X_REQUESTED_WITH: XMLHttpRequest
. See also RFC6648: Deprecating the "X-" Prefix.Much likely this had no big impact for the redirects because
qtranxf_can_redirect
cancels requests containing a non-empty$_POST
that is generally set with Ajax requests, but this may impact other parts.The text was updated successfully, but these errors were encountered: