Ticket #11060: 11060.diff
| File 11060.diff, 1.4 KB (added by , 17 years ago) |
|---|
-
wp-includes/classes.php
350 350 $headers['ETag'] = $wp_etag; 351 351 352 352 // Support for Conditional GET 353 if ( isset($_SERVER['HTTP_IF_NONE_MATCH']))353 if ( isset($_SERVER['HTTP_IF_NONE_MATCH']) ) 354 354 $client_etag = stripslashes(stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])); 355 else $client_etag = false; 355 else 356 $client_etag = false; 356 357 357 358 $client_last_modified = empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? '' : trim($_SERVER['HTTP_IF_MODIFIED_SINCE']); 358 359 // If string is empty, return 0. If not, attempt to parse into a timestamp … … 366 367 (($client_modified_timestamp >= $wp_modified_timestamp) || ($client_etag == $wp_etag)) ) { 367 368 $status = 304; 368 369 $exit_required = true; 370 371 switch ( strtolower($this->query_vars['feed']) ) { 372 case 'rdf': 373 $headers['Content-Type'] = feed_content_type('atom') . '; charset=' . get_option('blog_charset'); 374 break; 375 case 'atom': 376 $headers['Content-Type'] = feed_content_type('rdf') . '; charset=' . get_option('blog_charset'); 377 break; 378 case 'rss': 379 case 'rss2': 380 default: 381 $headers['Content-Type'] = feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'); 382 } 383 369 384 } 370 385 } 371 386
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)