From dde5ccd8ef57da7634dc6cbf6f5619d90b24f89b Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 23 Aug 2005 07:48:23 +0000 Subject: [PATCH] Don't hardcode file type, fixes #1553 git-svn-id: https://develop.svn.wordpress.org/trunk@2805 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 43aff203d7..1346b8893d 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