Initialize var. Props dd32. fixes #10050

git-svn-id: http://svn.automattic.com/wordpress/trunk@11529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-06 15:02:55 +00:00
parent 261f318c8a
commit a6e6817154
1 changed files with 2 additions and 0 deletions

View File

@ -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);