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

Props Mte90

Fixes 32240

Built from https://develop.svn.wordpress.org/trunk@32496


git-svn-id: http://core.svn.wordpress.org/trunk@32466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2015-05-12 10:47:29 +00:00
parent fe427017a5
commit da99450d30
2 changed files with 3 additions and 1 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' ); ?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32495';
$wp_version = '4.3-alpha-32496';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.