From 408b5ce591491e4db852d71797d41fbf4a01ce45 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 21 Mar 2007 06:07:17 +0000 Subject: [PATCH] Don't translate .thumbnail extension. fixes #2942 git-svn-id: http://svn.automattic.com/wordpress/trunk@5071 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index bdf7be03d..d6966d501 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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 );