From 2b002dfab64294bad050aec04e76763dd912bb5b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 14 May 2007 23:30:17 +0000 Subject: [PATCH] Theme screenshot fix from mdawaffe. fixes #4266 for 2.3. git-svn-id: https://develop.svn.wordpress.org/trunk@5476 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index bf10a04386..266c31add1 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -180,6 +180,7 @@ function get_themes() { $template = $theme_data['Template']; $stylesheet = dirname($theme_file); + $screenshot = false; foreach ( array('png', 'gif', 'jpg', 'jpeg') as $ext ) { if (file_exists("$theme_root/$stylesheet/screenshot.$ext")) { $screenshot = "screenshot.$ext";