WordPress.org

Make WordPress Core

Ticket #39774: functions.2.diff

File functions.2.diff, 465 bytes (added by drrobotnik, 4 years ago)

updated patch changes null to 0.

  • functions.php

     
    20542054        if ( $unique_filename_callback && is_callable( $unique_filename_callback ) ) {
    20552055                $filename = call_user_func( $unique_filename_callback, $dir, $name, $ext );
    20562056        } else {
    2057                 $number = '';
     2057                $number = 0;
    20582058
    20592059                // Change '.ext' to lower case.
    20602060                if ( $ext && strtolower($ext) != $ext ) {