Make WordPress Core


Ignore:
Timestamp:
09/11/2008 05:50:14 AM (16 years ago)
Author:
ryan
Message:

Don't assign default to pass-by-ref var. Not compatible with all PHP versions. see #6815

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r8857 r8861  
    1313 * @return object|bool WP_Error on failure, true on success.
    1414 */
    15 function _wp_translate_postdata( $update = false, &$post_data = null ) {
     15function _wp_translate_postdata( $update = false, $post_data = null ) {
    1616
    1717    if ( empty($post_data) )
     
    111111    }
    112112
    113     return true;
     113    return $post_data;
    114114}
    115115
     
    141141    }
    142142
    143     $translated = _wp_translate_postdata( true, $post_data );
    144     if ( is_wp_error($translated) )
    145         wp_die( $translated->get_error_message() );
     143    $post_data = _wp_translate_postdata( true, $post_data );
     144    if ( is_wp_error($post_data) )
     145        wp_die( $post_data->get_error_message() );
    146146
    147147    // Meta Stuff
Note: See TracChangeset for help on using the changeset viewer.