Use dir not url. Props DD32. fixes #8207
git-svn-id: https://develop.svn.wordpress.org/trunk@9688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f970b05bb1
commit
44b2293ae7
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue