#44794 closed defect (bug) (fixed)
Display registered `new_item` text from post post type in My Sites menu
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | good-first-bug has-patch |
Focuses: | multisite | Cc: |
Description
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
.
Attachments (1)
Change History (6)
#1
@
7 years ago
- Keywords has-patch added; needs-patch removed
Hello jeremyfelt, thank you for reporting that issue. I generated a patch file with your solution, let me know if that what you expected.
Note: See
TracTickets for help on using
tickets.
Edited admin-bar.php to remove hard coded "New Post" text from Multi-site admin bar