mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1142,8 +1142,9 @@ function get_post_type_labels( $post_type_object ) {
|
||||
'search_items' => array( __('Search Posts'), __('Search Pages') ),
|
||||
'not_found' => array( __('No posts found.'), __('No pages found.') ),
|
||||
'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
|
||||
'parent_item_colon' => array( null, __('Parent Page:') )
|
||||
'parent_item_colon' => array( null, __('Parent Page:') ),
|
||||
);
|
||||
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
|
||||
return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user