Don't hardcode file type, fixes #1553

git-svn-id: http://svn.automattic.com/wordpress/trunk@2805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-23 07:48:23 +00:00
parent d171aa7ec4
commit 317499b911

View File

@ -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