WordPress.org

Make WordPress Core

Changeset 43590


Ignore:
Timestamp:
08/29/2018 03:50:00 PM (3 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r43571 r43590  
    614614                    'parent' => $menu_id,
    615615                    'id'     => $menu_id . '-n',
    616                     'title'  => __( 'New Post' ),
     616                    'title'  => get_post_type_object( 'post' )->labels->new_item,
    617617                    'href'   => admin_url( 'post-new.php' ),
    618618                )
Note: See TracChangeset for help on using the changeset viewer.