From dea447f04c35ca1bf07288789a478cbcfb555c42 Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Wed, 13 Jan 2016 02:49:25 +0000 Subject: [PATCH] Add support for 451 http status code (Unavailable For Legal Reasons.) Though this is technically still in the proposal stage, there is support from the core team and precedent in #16914 Props andizer. Fixes #35333. Built from https://develop.svn.wordpress.org/trunk@36273 git-svn-id: http://core.svn.wordpress.org/trunk@36240 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b3fddfd2b8..c049638e0d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1021,6 +1021,7 @@ function get_status_header_desc( $code ) { 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', + 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', diff --git a/wp-includes/version.php b/wp-includes/version.php index a0bc70adc9..1219af8aba 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36272'; +$wp_version = '4.5-alpha-36273'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.