Nav Menus: In `Walker_Nav_Menu_Edit::start_el()` initialize `$original_title` with `false`.

Prevents displaying "Original:" without a title when adding a menu item without a title.

Props grapplerulrich, swissspidy.
Fixes #36729.
Built from https://develop.svn.wordpress.org/trunk@37953


git-svn-id: http://core.svn.wordpress.org/trunk@37894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-07-04 20:16:28 +00:00
parent e64b88cb34
commit be54af2e4c
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
'_wpnonce',
);
$original_title = '';
$original_title = false;
if ( 'taxonomy' == $item->type ) {
$original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
if ( is_wp_error( $original_title ) )

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta1-37952';
$wp_version = '4.6-beta1-37953';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.