Don't call is_wp_error() in wp_die() if it hasn't been defined yet. fixes #4308

git-svn-id: http://svn.automattic.com/wordpress/trunk@5507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-21 22:50:32 +00:00
parent aeb569d93d
commit 7048b27ede
1 changed files with 1 additions and 1 deletions

View File

@ -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']) )