WordPress.org

Make WordPress Core

Ticket #15698: patch-core-15698.diff

File patch-core-15698.diff, 578 bytes (added by koke, 3 years ago)

Patch to pass NULL to wp_upload_bits

  • wp-includes/class-wp-xmlrpc-server.php

     
    29412941                        $name = "wpid{$old_file->ID}-{$filename}"; 
    29422942                } 
    29432943 
    2944                 $upload = wp_upload_bits($name, $type, $bits); 
     2944                $upload = wp_upload_bits($name, NULL, $bits); 
    29452945                if ( ! empty($upload['error']) ) { 
    29462946                        $errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']); 
    29472947                        logIO('O', '(MW) ' . $errorString);