Don't translate .thumbnail extension. fixes #2942

git-svn-id: https://develop.svn.wordpress.org/trunk@5071 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-21 06:07:17 +00:00
parent 2c7201f057
commit f4a63dac75
1 changed files with 1 additions and 1 deletions

View File

@ -2209,7 +2209,7 @@ function wp_create_thumbnail( $file, $max_side, $effect = '' ) {
// If no filters change the filename, we'll do a default transformation.
if ( basename( $file ) == $thumb = apply_filters( 'thumbnail_filename', basename( $file ) ) )
$thumb = preg_replace( '!(\.[^.]+)?$!', __( '.thumbnail' ).'$1', basename( $file ), 1 );
$thumb = preg_replace( '!(\.[^.]+)?$!', '.thumbnail' . '$1', basename( $file ), 1 );
$thumbpath = str_replace( basename( $file ), $thumb, $file );