mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-18 14:52:48 +00:00
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:
parent
822f7704bc
commit
dde5ccd8ef
@ -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