| @@ -97,9 +97,9 @@ | ||
| 97 | 97 | add_action( 'pre_get_comments', array( $this, 'hide_comments' ), 10 ); |
| 98 | 98 | add_filter( 'comments_clauses', array( $this, 'hide_comments_pre_wp_41' ), 10, 1 ); |
| 99 | 99 | add_filter( 'comment_feed_where', array( $this, 'hide_comments_from_feeds' ), 10, 1 ); |
| 100 | 100 | add_filter( 'wp_count_comments', array( $this, 'remove_comments_from_comment_counts' ), 10, 2 ); |
| 101 | - add_filter( 'get_comment_author', array( $this, '__get_comment_author' ), 10, 3 ); | |
| 101 | + add_filter( 'get_comment_author', array($this, 'get_comment_author'), 10, 3 ); | |
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| @@ -431,8 +431,9 @@ | ||
| 431 | 431 | |
| 432 | 432 | /** |
| 433 | 433 | * Get donor name |
| 434 | 434 | * |
| 435 | + * @since 4.9.0 rename function - PHP 8 compatibility | |
| 435 | 436 | * @since 2.2.0 |
| 436 | 437 | * @access public |
| 437 | 438 | * |
| 438 | 439 | * @param string $author |
| @@ -440,9 +441,9 @@ | ||
| 440 | 441 | * @param WP_Comment $comment |
| 441 | 442 | * |
| 442 | 443 | * @return mixed |
| 443 | 444 | */ |
| 444 | - public function __get_comment_author( $author, $comment_id, $comment ) { | |
| 445 | + public function get_comment_author( $author, $comment_id, $comment ) { | |
| 445 | 446 | if ( in_array( $comment->comment_type, $this->comment_types ) ) { |
| 446 | 447 | switch ( $comment->comment_type ) { |
| 447 | 448 | case 'give_payment_note': |
| 448 | 449 | if ( get_comment_meta( $comment_id, '_give_donor_id', true ) ) { |