Make WordPress Core


Ignore:
Timestamp:
12/17/2019 08:50:16 PM (4 years ago)
Author:
azaozz
Message:

Upload: Run the final file name collision test in wp_unique_filename() for each existing file + 1.

Props pbiron.
See #48975.

File:
1 edited

Legend:

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

    r46966 r46976  
    24932493                // as it uses pathinfo() and regex in the check but string replacement for the changes.
    24942494                $count = count( $files );
    2495                 $i     = 1;
     2495                $i     = 0;
    24962496
    24972497                while ( $i <= $count && _wp_check_existing_file_names( $filename, $files ) ) {
Note: See TracChangeset for help on using the changeset viewer.