[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
Sun Jul 26 10:49:22 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 commit     |     Focuses:  ui,
  fixed-major dev-reviewed                       |  administration
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48620" 48620]:
 {{{
 #!CommitTicketReference repository="" revision="48620"
 Posts, Post Types: Move `get_post_states()` back to the admin for now,
 require the file in `WP_Customize_Nav_Menus::customize_register()`
 instead.

 This provides a minor performance improvement by only running the function
 in contexts where it's needed.

 Follow-up to [47211], [47213], [47763], [48619].

 See #46829, #49374.
 }}}

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


More information about the wp-trac mailing list