워드프레스 1.5.1 RSS 에러 수정

By | 2005-05-12

워드프레스 1.5.1로 업그레이드 한 다음에 RSS에 문제가 생기는 경우 아래 방법으로 패치합니다. (via Fernando_Graphicos)
워드프레스가 설치된 디렉토리에서 wp-blog-header.php 파일을 열어서 136번째줄부터 141번째 줄까지를 아래와 같이 변경합니다.
변경 전:


if ( ($client_last_modified && $client_etag) ?
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {
if ( preg_match('/cgi/',php_sapi_name()) ) {
header('Status: 304 Not Modified');
echo "\r\n\r\n";

변경 후:


if ( ($client_last_modified && $client_etag) ?
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
(($client_last_modified && strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {
if ( preg_match('/cgi/',php_sapi_name()) ) {
header('Status: 304 Not Modified');
echo "\r\n\r\n";

3 thoughts on “워드프레스 1.5.1 RSS 에러 수정

  1. hof Post author

    일모리// 네. 뭐 그외 특별한 문제는 없는거같네요.

  2. kirheis

    으… 아직 준비중이고, 공개하려고 한 것이 아닌데… 핑백이 넘어갔네요. ^^;
    이전에도 들렸지만 워드프레스 깔고 더 많이 들락날락하고 있답니다. ^^ 위의 핑백에서 이름란이 길어서 미안하기도 하고, 아직 도메인도 준비가 안된 블로그라…. 안지워도 상관은 없지만 지워주세요~

Comments are closed.