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:
parent
e64b88cb34
commit
be54af2e4c
|
@ -70,7 +70,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||||
'_wpnonce',
|
'_wpnonce',
|
||||||
);
|
);
|
||||||
|
|
||||||
$original_title = '';
|
$original_title = false;
|
||||||
if ( 'taxonomy' == $item->type ) {
|
if ( 'taxonomy' == $item->type ) {
|
||||||
$original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
|
$original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
|
||||||
if ( is_wp_error( $original_title ) )
|
if ( is_wp_error( $original_title ) )
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue