From ded817edd57a74896f71ca5c0cee2b63cb0e6dca Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 29 Aug 2018 15:50:00 +0000 Subject: [PATCH] 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 --- src/wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php index ca26994acc..d3aec38341 100644 --- a/src/wp-includes/admin-bar.php +++ b/src/wp-includes/admin-bar.php @@ -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' ), ) );