Make WordPress Core


Ignore:
Timestamp:
03/12/2010 09:57:52 PM (16 years ago)
Author:
ryan
Message:

Always use lowercase strings or menu type. Don't double save custom link menu items (remove the AJAX save). see #12566

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r13544 r13685  
    129129        $parent_id = isset( $_POST['item-parent'.$k] )? $_POST['item-parent'.$k] : 0;
    130130        $custom_title = isset( $_POST['item-title'.$k] )?  $_POST['item-title'.$k] : '';
    131         $custom_linkurl = ( isset( $_POST['item-url'.$k] ) && 'custom' == $_POST['linktype'.$k] ) ? $_POST['item-url'.$k] : '';
     131        $custom_linkurl = ( isset( $_POST['item-url'.$k] ) && 'custom' == $_POST['item-type'.$k] ) ? $_POST['item-url'.$k] : '';
    132132        $custom_description = isset( $_POST['item-description'.$k] )? $_POST['item-description'.$k] : '';
    133133
Note: See TracChangeset for help on using the changeset viewer.