마지막 수정 날짜 : 2016년 9월 21일
Disqus 댓글 처리
Disqus 는 기본적으로 삭제 된 댓글도 Approved1 목록에 들어가게 된다.
다음 사진을 보자.
수정 방법
나는 Disqus Condition Load 플러그인2을 쓰기 때문에 해당 플러그인을 기준으로 설명하지만 대부분 경로는 비슷하다.
[워드프레스 설치 경로]/wp-content/plugins/disqus-conditional-load/disqus-core/disqus.php3 파일을 열고407번째 줄 아래에 다음과 같이 추가하자. (줄 위치는 달라질 수 있다. 아래 소스를 참고해서 수정하자.)
399 400 401 402 403 404 405 406 407 408 409 |
if (!$commentdata) { // Comment doesnt exist yet, lets insert it if ($comment->status == 'approved') { $approved = 1; } elseif ($comment->status == 'spam') { $approved = 'spam'; } else { $approved = 0; } if ( $approved === 0 ) continue; // 해당 내용 추가 $commentdata = array( |
Disqus 의 싱크 속도 문제4 는 점차 연구하면서 다시 쓸 예정.