Changeset 5507

Show
Ignore:
Timestamp:
05/21/07 22:50:32 (1 year ago)
Author:
rob1n
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/wp-includes/functions.php

    r5500 r5507  
    13181318    global $wp_locale; 
    13191319 
    1320     if ( is_wp_error( $message ) ) { 
     1320    if ( function_exists( 'is_wp_error' ) && is_wp_error( $message ) ) { 
    13211321        if ( empty($title) ) { 
    13221322            $error_data = $message->get_error_data(); 
  • trunk/wp-includes/functions.php

    r5501 r5507  
    13381338    global $wp_locale; 
    13391339 
    1340     if ( is_wp_error( $message ) ) { 
     1340    if ( function_exists( 'is_wp_error' ) && is_wp_error( $message ) ) { 
    13411341        if ( empty($title) ) { 
    13421342            $error_data = $message->get_error_data();