[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:42:31 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:  reopened
 Priority:  normal                               |   Milestone:  5.4
Component:  Menus                                |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots needs-     |     Focuses:  ui,
  testing                                        |  administration
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 Since `get_post_states()` is only available in the admin, this is causing
 fatal errors on front end:
 {{{
 Fatal error: Uncaught Error: Call to undefined function get_post_states()
 in wp-includes/nav-menu.php:82
 }}}

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


More information about the wp-trac mailing list