Make WordPress Core

Changeset 34632


Ignore:
Timestamp:
09/27/2015 06:27:15 PM (9 years ago)
Author:
wonderboymusic
Message:

Update the docs in WP to explain the need to do [34476].

Fixes #20226.

File:
1 edited

Legend:

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

    r34494 r34632  
    360360     * Send additional HTTP headers for caching, content type, etc.
    361361     *
    362      * Sets the X-Pingback header, 404 status (if 404), Content-type. If showing
    363      * a feed, it will also send last-modified, etag, and 304 status if needed.
    364      *
    365      * @since 2.0.0
     362     * Sets the Content-Type header.
     363     * Sets the 'error' status (if passed) and optionally exits.
     364     * If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed.
     365     *
     366     * @since 2.0.0
     367     * @since 4.4.0  X-Pingback header is added conditionally after posts have been queried in handle_404().
    366368     */
    367369    public function send_headers() {
     
    583585     * Otherwise, issue a 200.
    584586     *
     587     * This sets headers after posts have been queried. handle_404() really means "handle status."
     588     * By inspecting the result of querying posts, seemingly successful requests can be switched to
     589     * a 404 so that canonical redirection logic can kick in.
     590     *
    585591     * @since 2.0.0
    586592     *
Note: See TracChangeset for help on using the changeset viewer.