WordPress.org

Make WordPress Core

Changeset 7478


Ignore:
Timestamp:
03/22/08 19:34:21 (7 years ago)
Author:
matt
Message:

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

Location:
trunk/wp-includes
Files:
2 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); 
  • trunk/wp-includes/media.php

    r7474 r7478  
    367367            } 
    368368        </style> 
     369        <!-- see gallery_shortcode() in wp-includes/media.php --> 
    369370        <div class='gallery'>"); 
    370371 
Note: See TracChangeset for help on using the changeset viewer.