From cf48e7578501b32cefb52302f36a40e3dc6406bc Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 29 Aug 2018 15:50:25 +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. Built from https://develop.svn.wordpress.org/trunk@43590 git-svn-id: http://core.svn.wordpress.org/trunk@43419 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index ca26994acc..d3aec38341 100644 --- a/wp-includes/admin-bar.php +++ b/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' ), ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f3f7357592..84bc48b6d8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43589'; +$wp_version = '5.0-alpha-43590'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.