Make WordPress Core


Ignore:
Timestamp:
03/22/2008 07:34:21 PM (17 years ago)
Author:
matt
Message:

Helper comment and lowercase filenames before playing around with them, to avoid extension duplication.

File:
1 edited

Legend:

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

    r7455 r7478  
    11211121// return a filename that is sanitized and unique for the given directory
    11221122function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL ) {
    1123 
     1123    $filename = strtolower( $filename );
    11241124    // separate the filename into a name and extension
    11251125    $info = pathinfo($filename);
Note: See TracChangeset for help on using the changeset viewer.