From 395fd9fc29ccba92d41cbff5c14d54ff039fef9a Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 7 Oct 2007 07:35:20 +0000 Subject: [PATCH] Define $constaint is all cases in get_attachment_icon() to fix E_NOTICE. Fixed #5159 props richcon. git-svn-id: http://svn.automattic.com/wordpress/trunk@6201 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a956dc482f..040a73e8c0 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -445,6 +445,7 @@ function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { } } else { $post->iconsize = array($imagesize[0], $imagesize[1]); + $constraint = ''; } }