WordPress.org

Make WordPress Core

Changeset 46760


Ignore:
Timestamp:
11/22/2019 06:26:41 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: Adjust wp_is_json_request() and wp_is_xml_request() return value descriptions for consistency.

See #48771, #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r46759 r46760  
    14791479 * @since 5.0.0
    14801480 *
    1481  * @return bool True if Accepts or Content-Type headers contain application/json, false otherwise.
     1481 * @return bool True if `Accepts` or `Content-Type` headers contain `application/json`.
     1482 *              False otherwise.
    14821483 */
    14831484function wp_is_json_request() {
     
    15281529 * @since 5.2.0
    15291530 *
    1530  * @return bool True if `Accepts` or `Content-Type` headers contain XML, false otherwise.
     1531 * @return bool True if `Accepts` or `Content-Type` headers contain `text/xml`
     1532 *              or one of the related MIME types. False otherwise.
    15311533 */
    15321534function wp_is_xml_request() {
Note: See TracChangeset for help on using the changeset viewer.