WordPress.org

Make WordPress Core

Changeset 5507


Ignore:
Timestamp:
05/21/2007 10:50:32 PM (11 years ago)
Author:
rob1n
Message:

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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();
Note: See TracChangeset for help on using the changeset viewer.