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
This commit is contained in:
Jeremy Felt 2018-08-29 15:50:25 +00:00
parent 062568e6b6
commit cf48e75785
2 changed files with 2 additions and 2 deletions

View File

@ -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' ),
)
);

View File

@ -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.