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

WordPress Trac noreply at wordpress.org
Tue May 30 14:12:01 UTC 2023


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55868" 55868]:
 {{{
 #!CommitTicketReference repository="" revision="55868"
 Docs: Add a `@since` tag for the `pre_wp_setup_nav_menu_item` filter.

 Includes moving the unit test next to the other `wp_setup_nav_menu_item()`
 tests and using the `MockAction` class to confirm that the filter runs.

 Follow-up to [55867].

 Props TobiasBg.
 Fixes #56577.
 }}}

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


More information about the wp-trac mailing list