WordPress.org

Make WordPress Core

Ticket #6295: 6295.001.diff

File 6295.001.diff, 636 bytes (added by markjaquith, 10 years ago)
  • wp-includes/js/tinymce/tiny_mce_config.php

     
    324324
    325325        putFileContents( $cache_file, $content );
    326326
    327         $mtime = gmdate( "D, d M Y H:i:s", filemtime($cache_file) ) . " GMT";
    328         header( 'Last-Modified: ' . $mtime );
     327        if ( file_exists( $cache_file ) && is_readable( $cache_file ) ) {
     328                $mtime = gmdate( "D, d M Y H:i:s", filemtime($cache_file) ) . " GMT";
     329                header( 'Last-Modified: ' . $mtime );
     330        }
    329331}
    330332
    331333// Stream to client