Theme screenshot fix from mdawaffe. fixes #4266 for 2.3.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-05-14 23:30:17 +00:00
parent 1fbb89b1a0
commit a291731ed3
1 changed files with 1 additions and 0 deletions

View File

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