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:
parent
062568e6b6
commit
cf48e75785
|
@ -613,7 +613,7 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||||
array(
|
array(
|
||||||
'parent' => $menu_id,
|
'parent' => $menu_id,
|
||||||
'id' => $menu_id . '-n',
|
'id' => $menu_id . '-n',
|
||||||
'title' => __( 'New Post' ),
|
'title' => get_post_type_object( 'post' )->labels->new_item,
|
||||||
'href' => admin_url( 'post-new.php' ),
|
'href' => admin_url( 'post-new.php' ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue