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

Fixes #20226.

Built from https://develop.svn.wordpress.org/trunk@34632


git-svn-id: http://core.svn.wordpress.org/trunk@34596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-27 18:28:24 +00:00
parent ccef2fc743
commit 8272a839cd
2 changed files with 9 additions and 3 deletions

View File

@ -359,10 +359,12 @@ class WP {
/** /**
* Send additional HTTP headers for caching, content type, etc. * Send additional HTTP headers for caching, content type, etc.
* *
* Sets the X-Pingback header, 404 status (if 404), Content-type. If showing * Sets the Content-Type header.
* a feed, it will also send last-modified, etag, and 304 status if needed. * Sets the 'error' status (if passed) and optionally exits.
* If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed.
* *
* @since 2.0.0 * @since 2.0.0
* @since 4.4.0 X-Pingback header is added conditionally after posts have been queried in handle_404().
*/ */
public function send_headers() { public function send_headers() {
$headers = array(); $headers = array();
@ -582,6 +584,10 @@ class WP {
* *
* Otherwise, issue a 200. * Otherwise, issue a 200.
* *
* This sets headers after posts have been queried. handle_404() really means "handle status."
* By inspecting the result of querying posts, seemingly successful requests can be switched to
* a 404 so that canonical redirection logic can kick in.
*
* @since 2.0.0 * @since 2.0.0
* *
* @global WP_Query $wp_query * @global WP_Query $wp_query

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34631'; $wp_version = '4.4-alpha-34632';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.