From a6e6817154abe6f74bb529cd6e36a1ebd26875ab Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 6 Jun 2009 15:02:55 +0000 Subject: [PATCH] Initialize var. Props dd32. fixes #10050 git-svn-id: http://svn.automattic.com/wordpress/trunk@11529 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/media.php b/wp-includes/media.php index e7c0bc79fd..7f34963842 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -503,6 +503,8 @@ function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon = if ( $image = image_downsize($attachment_id, $size) ) return $image; + $src = false; + if ( $icon && $src = wp_mime_type_icon($attachment_id) ) { $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' ); $src_file = $icon_dir . '/' . basename($src);