From 62c94190fb648751fea1b57bfaa5c3189e2f2d0d Mon Sep 17 00:00:00 2001 From: rob1n Date: Mon, 21 May 2007 22:50:32 +0000 Subject: [PATCH] Don't call is_wp_error() in wp_die() if it hasn't been defined yet. fixes #4308 git-svn-id: https://develop.svn.wordpress.org/trunk@5507 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index fd62643440..369d80efaa 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1337,7 +1337,7 @@ function wp_nonce_ays($action) { function wp_die( $message, $title = '' ) { global $wp_locale; - if ( is_wp_error( $message ) ) { + if ( function_exists( 'is_wp_error' ) && is_wp_error( $message ) ) { if ( empty($title) ) { $error_data = $message->get_error_data(); if ( is_array($error_data) && isset($error_data['title']) )