[wp-trac] [WordPress Trac] #58238: comment_text filter not applied with correct number of arguments within REST API

WordPress Trac noreply at wordpress.org
Sat Dec 9 22:12:01 UTC 2023


#58238: comment_text filter not applied with correct number of arguments within
REST API
--------------------------+-----------------------------
 Reporter:  sjregan       |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.5
Component:  REST API      |     Version:  6.2
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57176" 57176]:
 {{{
 #!CommitTicketReference repository="" revision="57176"
 REST API: Pass correct number of arguments to the `comment_text` filter.

 This ensures that
 `WP_REST_Comments_Controller::prepare_item_for_response()` passes three
 arguments to the `comment_text` filter, for consistency with all the other
 instances in core.

 Follow-up to [15957], [16357], [25555], [38832], [40664].

 Props sjregan, SergeyBiryukov.
 Fixes #58238.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58238#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list