diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php
index 44f3ee0..7dad0ea 100644
a
|
b
|
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
79 | 79 | |
80 | 80 | $title = $item->title; |
81 | 81 | |
| 82 | /* translators: menu item has no label */ |
| 83 | if (empty($title)){ |
| 84 | $title = sprintf( __('(no label)') ); |
| 85 | $no_title_class = 'no-title'; |
| 86 | } |
| 87 | |
82 | 88 | if ( ! empty( $item->_invalid ) ) { |
83 | 89 | $classes[] = 'menu-item-invalid'; |
84 | 90 | /* translators: %s: title of menu item which is invalid */ |
… |
… |
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
99 | 105 | <li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>"> |
100 | 106 | <dl class="menu-item-bar"> |
101 | 107 | <dt class="menu-item-handle"> |
102 | | <span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span> |
| 108 | <span class="item-title"><span class="menu-item-title <?php echo $no_title_class; ?>"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span> |
103 | 109 | <span class="item-controls"> |
104 | 110 | <span class="item-type"><?php echo esc_html( $item->type_label ); ?></span> |
105 | 111 | <span class="item-order hide-if-js"> |
… |
… |
function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_select |
1275 | 1281 | foreach( (array) $_POST['menu-item-db-id'] as $_key => $k ) { |
1276 | 1282 | |
1277 | 1283 | // Menu item title can't be blank |
1278 | | if ( ! isset( $_POST['menu-item-title'][ $_key ] ) || '' == $_POST['menu-item-title'][ $_key ] ) |
| 1284 | if ( ! isset( $_POST['menu-item-title'][ $_key ] ) ) |
1279 | 1285 | continue; |
1280 | 1286 | |
1281 | 1287 | $args = array(); |