WordPress.org

Make WordPress Core

Ticket #36212: 36212.diff

File 36212.diff, 715 bytes (added by farookibrahim, 4 years ago)
  • src/wp-admin/includes/nav-menu.php

    diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php
    index a6aac33..99f2fb9 100644
    a b function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_select 
    10311031        if ( ! empty( $_POST['menu-item-db-id'] ) ) {
    10321032                foreach ( (array) $_POST['menu-item-db-id'] as $_key => $k ) {
    10331033
    1034                         // Menu item title can't be blank
    1035                         if ( ! isset( $_POST['menu-item-title'][ $_key ] ) || '' == $_POST['menu-item-title'][ $_key ] )
    1036                                 continue;
    1037 
    10381034                        $args = array();
    10391035                        foreach ( $post_fields as $field )
    10401036                                $args[$field] = isset( $_POST[$field][$_key] ) ? $_POST[$field][$_key] : '';