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. git-svn-id: https://develop.svn.wordpress.org/trunk@37689 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
034b6c025d
commit
2b2dde968b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user