[wp-trac] [WordPress Trac] #56577: Add short-circuit filter to `wp_setup_nav_menu_item`

WordPress Trac noreply at wordpress.org
Tue Jun 20 11:14:52 UTC 2023


#56577: Add short-circuit filter to `wp_setup_nav_menu_item`
-------------------------------------------------+-------------------------
 Reporter:  david.binda                          |       Owner:  azaozz
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.3
Component:  Menus                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing-info has-patch commit  |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------
Changes (by azaozz):

 * keywords:  needs-testing-info 2nd-opinion has-patch => needs-testing-info
     has-patch commit


Comment:

 Replying to [comment:12 SergeyBiryukov]:

 > The description was adjusted for consistency with all other short-
 circuit filters in core. There are at least 20 instances of this pattern
 in core files:

 Ahh, I see. Makes sense. Thinking we can look at updating/fixing the docs
 for all of these at some point, seems they can be a bit better.

 56577.3.diff looks good imho, thanks for updating the test!

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


More information about the wp-trac mailing list