icon_dir_uri filter instead of icon_dir. Props jmini. fixes #7947

git-svn-id: http://svn.automattic.com/wordpress/trunk@9280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-22 17:09:03 +00:00
parent 6ad29de92a
commit ef44f75f79
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;
if ( $icon && $src = wp_mime_type_icon($attachment_id) ) {
$icon_dir = apply_filters( 'icon_dir', includes_url('images/crystal') );
$icon_dir = apply_filters( 'icon_dir_uri', includes_url('images/crystal') );
$src_file = $icon_dir . '/' . basename($src);
@list($width, $height) = getimagesize($src_file);
}