WordPress.org

Make WordPress Core

Changeset 50816


Ignore:
Timestamp:
05/05/2021 06:53:54 PM (7 months ago)
Author:
davidbaumwald
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-comment.php

    r50375 r50816  
    201201
    202202        if ( 'comment' === $comment->comment_type ) {
    203             remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
     203            remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40 );
    204204        }
    205205    }
Note: See TracChangeset for help on using the changeset viewer.