Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Commit 36adef7

Browse files
committed
Fixed: replaced selecting_userid with het_current_user_id()
1 parent da68010 commit 36adef7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

anspress_email.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,13 @@ public function ap_after_new_answer($answer_id) {
494494
* @param integer $answer_id
495495
* @return void
496496
*/
497-
public function select_answer($userid, $question_id, $answer_id) {
497+
public function select_answer($selecting_userid, $question_id, $answer_id) {
498498

499499
$answer = get_post( $answer_id );
500500

501-
if ( $answer->post_author == $userid ) {
502-
return; }
501+
if ( $answer->post_author == get_current_user_id() ) {
502+
return;
503+
}
503504

504505
$args = array(
505506
'{answerer}' => ap_user_display_name( $answer->post_author ),

0 commit comments

Comments
 (0)