[wp-trac] [WordPress Trac] #55829: Doc error on ticket 10886

WordPress Trac noreply at wordpress.org
Wed May 25 14:58:33 UTC 2022


#55829: Doc error on ticket 10886
----------------------------+----------------------------
 Reporter:  stevemullen     |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  WordPress.org
Component:  Bootstrap/Load  |     Version:  6.0
 Severity:  normal          |  Resolution:  fixed
 Keywords:                  |     Focuses:  docs
----------------------------+----------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * focuses:   => docs
 * resolution:   => fixed
 * milestone:  Awaiting Review => WordPress.org


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the ticket.

 Just to clarify for anyone looking at this, it's about this post:
 [https://make.wordpress.org/core/2022/04/27/changes-to-do_parse_request-
 filter-in-wordpress-6-0/ Changes to do_parse_request filter in WordPress
 6.0].

 Good catch! There is also an issue with the `add_filter()` call there, it
 should specify the number of arguments:
 {{{
 add_filter( 'do_parse_request', 'wporg_add_custom_query', 10, 3 );
 }}}
 Otherwise, only the first argument is actually passed to the filter.

 I have updated the post to correct these issues.

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


More information about the wp-trac mailing list