WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/12/2015 10:46:50 AM (4 years ago)
Author:
johnbillion
Message:

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

Props Mte90

Fixes 32240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-compat/header.php

    r27716 r32496  
    2121<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    2222
     23<?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
    2324<style type="text/css" media="screen">
    2425
     
    3334
    3435</style>
     36<?php } ?>
    3537
    3638<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
Note: See TracChangeset for help on using the changeset viewer.