icon_dir_uri filter instead of icon_dir. Props jmini. fixes #7947
git-svn-id: https://develop.svn.wordpress.org/trunk@9280 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ea92c4ec2e
commit
a5f43eaf65
@ -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', includes_url('images/crystal') );
|
$icon_dir = apply_filters( 'icon_dir_uri', includes_url('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
Block a user