Changeset 5071

Show
Ignore:
Timestamp:
03/21/07 06:07:17 (1 year ago)
Author:
ryan
Message:

Don't translate .thumbnail extension. fixes #2942

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-functions.php

    r5068 r5071  
    22102210            // If no filters change the filename, we'll do a default transformation. 
    22112211            if ( basename( $file ) == $thumb = apply_filters( 'thumbnail_filename', basename( $file ) ) ) 
    2212                 $thumb = preg_replace( '!(\.[^.]+)?$!', __( '.thumbnail' ).'$1', basename( $file ), 1 ); 
     2212                $thumb = preg_replace( '!(\.[^.]+)?$!', '.thumbnail' . '$1', basename( $file ), 1 ); 
    22132213 
    22142214            $thumbpath = str_replace( basename( $file ), $thumb, $file );