Make WordPress Core

Changeset 3378


Ignore:
Timestamp:
12/29/2005 02:07:10 AM (19 years ago)
Author:
ryan
Message:

More wp_upload_bits() fixes.

Location:
trunk
Files:
2 edited

Legend:

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

    r3377 r3378  
    933933    $url = $upload['url'] . "/$filename";
    934934
    935     return array('file' => $new_file, 'url' => $url);
     935    return array('file' => $new_file, 'url' => $url, 'error' => false);
    936936}
    937937
  • trunk/xmlrpc.php

    r3310 r3378  
    854854
    855855        $upload = wp_upload_bits($name, $type, $bits);
    856         if ( $upload['error'] !== false ) {
     856        if ( ! empty($upload['error']) ) {
    857857            logIO('O', '(MW) Could not write file '.$name);
    858858            return new IXR_Error(500, 'Could not write file '.$name);
Note: See TracChangeset for help on using the changeset viewer.