Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (13 months ago)
Author:
audrasjb
Message:

HTTP API: Fix request header inconsistencies.

This changeset improves the consistency in capitalization of fetching and outputting of request headers. It also updates occurrences found in some docblocks.

Props johnjamesjacoby, costdev, audrasjb, petitphp, mhkuu, SergeyBiryukov.
Fixes #54225.

File:
1 edited

Legend:

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

    r54759 r55210  
    292292        _deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' );
    293293
    294         header('Content-type: application/json');
     294        header('Content-Type: application/json');
    295295        return $this->encodeUnsafe($var);
    296296    }
Note: See TracChangeset for help on using the changeset viewer.