Define $constaint is all cases in get_attachment_icon() to fix E_NOTICE. Fixed #5159 props richcon.

git-svn-id: https://develop.svn.wordpress.org/trunk@6201 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-10-07 07:35:20 +00:00
parent 6234be8d22
commit d36d0756e3
1 changed files with 1 additions and 0 deletions

View File

@ -445,6 +445,7 @@ function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) {
}
} else {
$post->iconsize = array($imagesize[0], $imagesize[1]);
$constraint = '';
}
}