Use dir not url. Props DD32. fixes #8207

git-svn-id: http://svn.automattic.com/wordpress/trunk@9688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-14 18:32:10 +00:00
parent 268523f5ac
commit e9dc3d0fa7
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon =
return $image; return $image;
if ( $icon && $src = wp_mime_type_icon($attachment_id) ) { if ( $icon && $src = wp_mime_type_icon($attachment_id) ) {
$icon_dir = apply_filters( 'icon_dir_uri', includes_url('images/crystal') ); $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/crystal' );
$src_file = $icon_dir . '/' . basename($src); $src_file = $icon_dir . '/' . basename($src);
@list($width, $height) = getimagesize($src_file); @list($width, $height) = getimagesize($src_file);
} }