Don't hardcode file type, fixes #1553

git-svn-id: https://develop.svn.wordpress.org/trunk@2805 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-08-23 07:48:23 +00:00
parent 822f7704bc
commit dde5ccd8ef

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