WordPress.org

Make WordPress Core

Ticket #4266: 4266.diff

File 4266.diff, 473 bytes (added by mdawaffe, 11 years ago)
  • wp-includes/theme.php

     
    180180                $template    = $theme_data['Template'];
    181181                $stylesheet  = dirname($theme_file);
    182182
     183                $screenshot = false;
    183184                foreach ( array('png', 'gif', 'jpg', 'jpeg') as $ext ) {
    184185                        if (file_exists("$theme_root/$stylesheet/screenshot.$ext")) {
    185186                                $screenshot = "screenshot.$ext";