Skip to content

Commit

Permalink
워드프레스 통합검색 관련 개선 (게시글 상태 휴지통일 때 Post 상태도 휴지통으로 적용)
Browse files Browse the repository at this point in the history
  • Loading branch information
lchcosmosfarm committed Mar 16, 2020
1 parent 02c2754 commit 4d5ee36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions plugins/kboard/class/KBContent.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ public function updatePost($post_id, $member_uid){
'post_author' => $member_uid,
'post_title' => $this->title,
'post_content' => ($this->secret || $this->search==2)?'':$this->content,
'post_status' => $this->status == 'trash' ? 'trash' : 'publish',
'post_parent' => $this->board_id
);
wp_update_post($args);
Expand Down Expand Up @@ -1119,6 +1120,9 @@ public function getPostID(){
global $wpdb;
if($this->uid){
$post_id = $wpdb->get_var("SELECT `ID` FROM `{$wpdb->prefix}posts` WHERE `post_name`='$this->uid' AND `post_type`='kboard'");
if(!$post_id){
$post_id = $wpdb->get_var("SELECT `ID` FROM `{$wpdb->prefix}posts` WHERE `post_name`='{$this->uid}__trashed' AND `post_type`='kboard'");
}
return intval($post_id);
}
return 0;
Expand Down
13 changes: 7 additions & 6 deletions plugins/kboard/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
10. kboard_pagination_text 필터 추가
11. kboard_pre_iframe_head 필터 추가
12. contentUpdate 함수에 kboard_pre_document_update 액션 추가
13. 유튜브, 비메오 동영상 URL을 iframe 코드로 변환하는 코드 개선
14. session start 관련 개선
15. KBoard 메일 메시지 템플릿 코드 개선
16. 관리자 페이지 스킨 목록에서 .git 폴더 제외
17. 본인 수정/삭제를 막을 수 있는 게시판 옵션 추가 (Alghost, https://github.com/Alghost)
18. 버그 수정
13. 워드프레스 통합검색 관련 개선 (게시글 상태 휴지통일 때 Post 상태도 휴지통으로 적용)
14. 유튜브, 비메오 동영상 URL을 iframe 코드로 변환하는 코드 개선
15. session start 관련 개선
16. KBoard 메일 메시지 템플릿 코드 개선
17. 관리자 페이지 스킨 목록에서 .git 폴더 제외
18. 본인 수정/삭제를 막을 수 있는 게시판 옵션 추가 (Alghost, https://github.com/Alghost)
19. 버그 수정


5.5
Expand Down

0 comments on commit 4d5ee36

Please sign in to comment.