Customizer: Use the plural label for available menu item types.

Fixes #33634.
Built from https://develop.svn.wordpress.org/trunk@34487


git-svn-id: http://core.svn.wordpress.org/trunk@34451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-09-24 09:16:25 +00:00
parent 340b7a5289
commit 833e92b7da
2 changed files with 3 additions and 3 deletions

View File

@ -615,7 +615,7 @@ final class WP_Customize_Nav_Menus {
if ( $post_types ) { if ( $post_types ) {
foreach ( $post_types as $slug => $post_type ) { foreach ( $post_types as $slug => $post_type ) {
$item_types[] = array( $item_types[] = array(
'title' => $post_type->labels->singular_name, 'title' => $post_type->labels->name,
'type' => 'post_type', 'type' => 'post_type',
'object' => $post_type->name, 'object' => $post_type->name,
); );
@ -629,7 +629,7 @@ final class WP_Customize_Nav_Menus {
continue; continue;
} }
$item_types[] = array( $item_types[] = array(
'title' => $taxonomy->labels->singular_name, 'title' => $taxonomy->labels->name,
'type' => 'taxonomy', 'type' => 'taxonomy',
'object' => $taxonomy->name, 'object' => $taxonomy->name,
); );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34486'; $wp_version = '4.4-alpha-34487';
/** /**
* 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.