Theme screenshot fix from mdawaffe. fixes #4266 for 2.3.
git-svn-id: https://develop.svn.wordpress.org/trunk@5476 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25e659472d
commit
2b002dfab6
@ -180,6 +180,7 @@ function get_themes() {
|
||||
$template = $theme_data['Template'];
|
||||
$stylesheet = dirname($theme_file);
|
||||
|
||||
$screenshot = false;
|
||||
foreach ( array('png', 'gif', 'jpg', 'jpeg') as $ext ) {
|
||||
if (file_exists("$theme_root/$stylesheet/screenshot.$ext")) {
|
||||
$screenshot = "screenshot.$ext";
|
||||
|
Loading…
Reference in New Issue
Block a user