~canonical-sysadmins/wordpress/4.8.2

« back to all changes in this revision

Viewing changes to wp-includes/rest-api/class-wp-rest-request.php

  • Committer: axino
  • Date: 2017-03-07 07:21:12 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: axino@canonical.com-20170307072112-9g3xb2f6bb0skh02
Merge WP4.7.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
                        $this->parse_body_params();
365
365
                }
366
366
 
367
 
                $accepts_body_data = array( 'POST', 'PUT', 'PATCH' );
 
367
                $accepts_body_data = array( 'POST', 'PUT', 'PATCH', 'DELETE' );
368
368
                if ( in_array( $this->method, $accepts_body_data ) ) {
369
369
                        $order[] = 'POST';
370
370
                }