[wp-trac] [WordPress Trac] #49810: Remove workaround for $HTTP_RAW_POST_DATA bug present in PHP < 5.2.2

WordPress Trac noreply at wordpress.org
Mon Jun 8 19:53:34 UTC 2020


#49810: Remove workaround for $HTTP_RAW_POST_DATA bug present in PHP < 5.2.2
-------------------------------------------------+-------------------------
 Reporter:  skoskie                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  General                              |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  rest-api
  tests needs-dev-note                           |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47926" 47926]:
 {{{
 #!CommitTicketReference repository="" revision="47926"
 General: Remove or add inline comments to `$HTTP_RAW_POST_DATA`
 occurrences.

 The `$HTTP_RAW_POST_DATA` global was deprecated in PHP 5.6 and removed
 completely in PHP 7.0. In general, `php://input` should be used instead of
 `$HTTP_RAW_POST_DATA`.

 Because WordPress Core still supports PHP 5.6, some plugins or sites may
 still rely on this variable being present and populated with the expected
 data. For that reason, occurrences of the variable will remain with
 updated inline documentation until support for PHP 5.6 is officially
 dropped in WordPress.

 Props skoskie, jrf, desrosj, TimothyBlynJacobs.
 See #49922.
 Fixes #49810.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49810#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list