Login: Fire wp_no_robots() in wp_die() only if function exists.

This covers cases where `wp_die()` is used before `general-template.php` is loaded.

Fixes #34401.

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


git-svn-id: http://core.svn.wordpress.org/trunk@37655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-06-12 00:34:29 +00:00
parent 50ab6e8df0
commit 2cd62a2c97
2 changed files with 6 additions and 2 deletions

View File

@ -2661,7 +2661,11 @@ 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(); ?>
<?php
if ( function_exists( 'wp_no_robots' ) ) {
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-37688';
$wp_version = '4.6-alpha-37689';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.