[wp-trac] [WordPress Trac] #49374: Use get_post_states to denote special pages on the added menu item accordions

WordPress Trac noreply at wordpress.org
Sat Feb 8 12:47:46 UTC 2020


#49374: Use get_post_states to denote special pages on the added menu item
accordions
-------------------------------------------------+-------------------------
 Reporter:  garrett-eclipse                      |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.4
Component:  Menus                                |     Version:  5.3
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-screenshots needs-     |     Focuses:  ui,
  testing                                        |  administration
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"47213" 47213]:
 {{{
 #!CommitTicketReference repository="" revision="47213"
 Menus: When adding a label for special pages in
 `wp_setup_nav_menu_item()`, check if `get_post_states()` is available, to
 avoid fatal errors on front end.

 Fixes #49374.
 }}}

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


More information about the wp-trac mailing list