From be54af2e4c025214a63856cd527117b8b87e02a8 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 4 Jul 2016 20:16:28 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-walker-nav-menu-edit.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-walker-nav-menu-edit.php b/wp-admin/includes/class-walker-nav-menu-edit.php index 7576de123f..9a2f3ecb69 100644 --- a/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/wp-admin/includes/class-walker-nav-menu-edit.php @@ -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 ) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 7cdee33b69..a851a722dc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.