Docs: Adjust wp_is_json_request()
and wp_is_xml_request()
return value descriptions for consistency.
See #48771, #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@46760 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7551c2b47d
commit
b718cc0252
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user