PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | includes/class-give-comment.php +3 -2 2.30.04.16.9 View file →
@@ -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 ) ) {