Customizer: Use the plural label for available menu item types.
Fixes #33634. git-svn-id: https://develop.svn.wordpress.org/trunk@34487 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
273bd1ed99
commit
15ee0a44b2
@ -615,7 +615,7 @@ final class WP_Customize_Nav_Menus {
|
||||
if ( $post_types ) {
|
||||
foreach ( $post_types as $slug => $post_type ) {
|
||||
$item_types[] = array(
|
||||
'title' => $post_type->labels->singular_name,
|
||||
'title' => $post_type->labels->name,
|
||||
'type' => 'post_type',
|
||||
'object' => $post_type->name,
|
||||
);
|
||||
@ -629,7 +629,7 @@ final class WP_Customize_Nav_Menus {
|
||||
continue;
|
||||
}
|
||||
$item_types[] = array(
|
||||
'title' => $taxonomy->labels->singular_name,
|
||||
'title' => $taxonomy->labels->name,
|
||||
'type' => 'taxonomy',
|
||||
'object' => $taxonomy->name,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user