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:
@@ -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' ); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user