Make WordPress Core


Ignore:
Timestamp:
02/03/2023 01:33:18 PM (2 years 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-simplepie.php

    r52413 r55210  
    18651865
    18661866    /**
    1867      * Send the content-type header with correct encoding
     1867     * Send the Content-Type header with correct encoding
    18681868     *
    18691869     * This method ensures that the SimplePie-enabled page is being served with
     
    18871887        if (!headers_sent())
    18881888        {
    1889             $header = "Content-type: $mime;";
     1889            $header = "Content-Type: $mime;";
    18901890            if ($this->get_encoding())
    18911891            {
Note: See TracChangeset for help on using the changeset viewer.