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:
parent
261f318c8a
commit
a6e6817154
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue