mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
50ab6e8df0
commit
2cd62a2c97
@ -2661,7 +2661,11 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width">
|
<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>
|
<title><?php echo $title ?></title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html {
|
html {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user