Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27498


Ignore:
Timestamp:
03/24/2014 09:41:38 AM (11 years ago)
Author:
SergeyBiryukov
Comment:

Introduced in [5978], modified in [16797].

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27498

    • Property Version changed from trunk to 3.1
  • Ticket #27498 – Description

    initial v1  
    1 If $_POST is empty a canonical redirect is still made even though it should be ignored upon all POST requests. As this redirect occurs before user have a chance to handle the request themselves in a template_redirect filter it prevents users to write proper REST APIs that include POST requests with no data.
     1If `$_POST` is empty a canonical redirect is still made even though it should be ignored upon all POST requests. As this redirect occurs before user have a chance to handle the request themselves in a template_redirect filter it prevents users to write proper REST APIs that include POST requests with no data.
    22
    3 A patch that uses $_SERVER['REQUEST_METHOD'] instead of relying on the $_POST variable to identify request type is attached.
     3A patch that uses `$_SERVER['REQUEST_METHOD']` instead of relying on the `$_POST` variable to identify request type is attached.