From 58aa1cc8c5087c8342b61a15ba56da837452526b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 22 Nov 2019 18:28:04 +0000 Subject: [PATCH] Docs: Adjust `wp_is_json_request()` and `wp_is_xml_request()` return value descriptions for consistency. See #48771, #48303. Built from https://develop.svn.wordpress.org/trunk@46760 git-svn-id: http://core.svn.wordpress.org/trunk@46560 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 97a7bc6254..52d965018c 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -1478,7 +1478,8 @@ function wp_finalize_scraping_edited_file_errors( $scrape_key ) { * * @since 5.0.0 * - * @return bool True if Accepts or Content-Type headers contain application/json, false otherwise. + * @return bool True if `Accepts` or `Content-Type` headers contain `application/json`. + * False otherwise. */ function wp_is_json_request() { @@ -1527,7 +1528,8 @@ function wp_is_jsonp_request() { * * @since 5.2.0 * - * @return bool True if `Accepts` or `Content-Type` headers contain XML, false otherwise. + * @return bool True if `Accepts` or `Content-Type` headers contain `text/xml` + * or one of the related MIME types. False otherwise. */ function wp_is_xml_request() { $accepted = array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 029678da66..2b73b936b2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46759'; +$wp_version = '5.4-alpha-46760'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.