[wp-trac] [WordPress Trac] #44794: Display registered `new_item` text from post post type in My Sites menu

WordPress Trac noreply at wordpress.org
Tue Aug 14 20:51:37 UTC 2018


#44794: Display registered `new_item` text from post post type in My Sites menu
--------------------------------+----------------------------------------
 Reporter:  jeremyfelt          |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Future Release
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch good-first-bug
  Focuses:  multisite           |
--------------------------------+----------------------------------------
 Each site in the "My Sites" menu is hard coded to display "New Post" even
 if the default post type arguments for posts have been filtered.

 Instead of using "New Post", we should be able to use
 `get_post_type_object( 'post' )->labels->new_item` in this area of `admin-
 bar.php`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44794>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list