From 7ca9b459e50bc1aa97d460a8362d9d29e232f15b Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Wed, 5 May 2021 18:53:54 +0000 Subject: [PATCH] Comments: Remove fourth parameter on `remove_filter` call. In `class-walker-comment.php`, a `remove_filter` call on `comment_text` passed a fourth parameter which was not needed. This change removes the extra argument. Props diddledan, SergeyBiryukov. Fixes #53113. git-svn-id: https://develop.svn.wordpress.org/trunk@50816 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-walker-comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-walker-comment.php b/src/wp-includes/class-walker-comment.php index 9df2d20b3b..0ac661e547 100644 --- a/src/wp-includes/class-walker-comment.php +++ b/src/wp-includes/class-walker-comment.php @@ -200,7 +200,7 @@ class Walker_Comment extends Walker { } if ( 'comment' === $comment->comment_type ) { - remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 ); + remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40 ); } }