Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (16 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/sitemaps/class-wp-sitemaps-renderer.php

    r54133 r55210  
    124124     */
    125125    public function render_index( $sitemaps ) {
    126         header( 'Content-type: application/xml; charset=UTF-8' );
     126        header( 'Content-Type: application/xml; charset=UTF-8' );
    127127
    128128        $this->check_for_simple_xml_availability();
     
    189189     */
    190190    public function render_sitemap( $url_list ) {
    191         header( 'Content-type: application/xml; charset=UTF-8' );
     191        header( 'Content-Type: application/xml; charset=UTF-8' );
    192192
    193193        $this->check_for_simple_xml_availability();
Note: See TracChangeset for help on using the changeset viewer.