mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
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:
parent
ccef2fc743
commit
8272a839cd
@ -359,10 +359,12 @@ class WP {
|
||||
/**
|
||||
* Send additional HTTP headers for caching, content type, etc.
|
||||
*
|
||||
* Sets the X-Pingback header, 404 status (if 404), Content-type. If showing
|
||||
* a feed, it will also send last-modified, etag, and 304 status if needed.
|
||||
* Sets the Content-Type header.
|
||||
* 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 4.4.0 X-Pingback header is added conditionally after posts have been queried in handle_404().
|
||||
*/
|
||||
public function send_headers() {
|
||||
$headers = array();
|
||||
@ -582,6 +584,10 @@ class WP {
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* @global WP_Query $wp_query
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user