From d36d0756e3ce4480244841e1702f0deccd85fb85 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@6201 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 = ''; } }