Make WordPress Core

Ticket #35799: 35799.diff

File 35799.diff, 932 bytes (added by DrewAPicture, 11 years ago)
  • src/wp-includes/rest-api/class-wp-rest-request.php

     
    1616 * used in that manner. It does not use ArrayObject (as we cannot rely on SPL),
    1717 * so be aware it may have non-array behaviour in some cases.
    1818 *
     19 * Note: When using features provided by ArrayAccess, be aware that WordPress deliberately
     20 * does not distinguish between arguments of the same name for different request methods.
     21 * For instance, in a request with `GET id=1` and `POST id=2`, `$request['id']` will equal
     22 * 2 (`POST`) not 1 (`GET`). For more precision between request methods, use
     23 * {@see WP_REST_Request::get_body_params()}, {@see WP_REST_Request::get_url_params()},
     24 * etc.
     25 *
    1926 * @since 4.4.0
    2027 *
    2128 * @see ArrayAccess