mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Multisite: Display registered new_item text for post post type in My Sites menu.
Previously, the My Sites menu would show "New Post" even if the `post` post type labels had been filtered to different values. Props nahuelmahe. Fixes #44794. git-svn-id: https://develop.svn.wordpress.org/trunk@43590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
24248a44b9
commit
ded817edd5
@ -613,7 +613,7 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||
array(
|
||||
'parent' => $menu_id,
|
||||
'id' => $menu_id . '-n',
|
||||
'title' => __( 'New Post' ),
|
||||
'title' => get_post_type_object( 'post' )->labels->new_item,
|
||||
'href' => admin_url( 'post-new.php' ),
|
||||
)
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user