[wp-trac] [WordPress Trac] #58932: wp_setup_nav_menu_item() throws PHP warning when using virtual menu-items

WordPress Trac noreply at wordpress.org
Sat Jul 29 00:35:53 UTC 2023


#58932: wp_setup_nav_menu_item() throws PHP warning when using virtual menu-items
--------------------------+------------------------------
 Reporter:  apedog        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  5.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by apedog):

 Perhaps a similar sanity check could be added to `get_post_states()` if
 parameter `$post` is null.

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


More information about the wp-trac mailing list