Add a sanity check to `theme-compat/header.php` to avoid outputting CSS which could reference a non-existant file.

Props Mte90

Fixes 32240


git-svn-id: https://develop.svn.wordpress.org/trunk@32496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-05-12 10:46:50 +00:00
parent 59eb437a35
commit d01281af10
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
<style type="text/css" media="screen">
<?php
@ -32,6 +33,7 @@ if ( empty($withcomments) && !is_single() ) {
<?php } ?>
</style>
<?php } ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>