mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
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:
parent
d171aa7ec4
commit
317499b911
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user