From 317499b9117eb1f3211724bdf28c29e51a142558 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 23 Aug 2005 07:48:23 +0000 Subject: [PATCH] Don't hardcode file type, fixes #1553 git-svn-id: http://svn.automattic.com/wordpress/trunk@2805 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 43aff203d..1346b8893 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1591,7 +1591,7 @@ function get_themes() { $template = $theme_data['Template']; $stylesheet = dirname($theme_file); - $screenshot = glob("$theme_root/$stylesheet/screenshot.png"); + $screenshot = glob("$theme_root/$stylesheet/screenshot.*"); if ( !empty( $screenshot ) ) $screenshot = basename( $screenshot[0] ); else