Add noindexing to the default `wp_die()` handler to avoid unnecessary crawl errors in web search engines.

Fixes #34401
Props rodrigosprimo

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


git-svn-id: http://core.svn.wordpress.org/trunk@37176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2016-04-15 02:05:27 +00:00
parent 56cc4bc79c
commit 17be663ad0
2 changed files with 2 additions and 1 deletions

View File

@ -2662,6 +2662,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">
<?php wp_no_robots(); ?>
<title><?php echo $title ?></title>
<style type="text/css">
html {

View File

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