2005년 5월 12일 목요일

워드프레스 1.5.1 RSS 에러 수정

워드프레스 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";