WordPress.org

Make WordPress Core

Ticket #39774: functions.diff

File functions.diff, 504 bytes (added by drrobotnik, 5 years ago)

wp-includes/functions.php, changes default type to null in order to fix bug in WP while using PHP 7.1

  • wp-includes/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 = null;
    20582058
    20592059                // Change '.ext' to lower case.
    20602060                if ( $ext && strtolower($ext) != $ext ) {