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:
parent
59eb437a35
commit
d01281af10
@ -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="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
|
||||||
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
|
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
|
||||||
|
|
||||||
|
<?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -32,6 +33,7 @@ if ( empty($withcomments) && !is_single() ) {
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
|
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user