From 2cd62a2c977c7caf049f82d051254d9d15618c76 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sun, 12 Jun 2016 00:34:29 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 878ed7c902..a39e7034cb 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2661,7 +2661,11 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) { - + <?php echo $title ?>