Ticket #47707: nav-menu.php.diff
File nav-menu.php.diff, 1.4 KB (added by , 6 years ago) |
---|
-
wp-admin/includes/nav-menu.php
292 292 <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" /> 293 293 <p id="menu-item-url-wrap" class="wp-clearfix"> 294 294 <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label> 295 <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" class="code menu-item-textbox" value="http s://" />295 <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" class="code menu-item-textbox" value="http://" /> 296 296 </p> 297 297 298 298 <p id="menu-item-name-wrap" class="wp-clearfix"> … … 894 894 // And item type either isn't set. 895 895 ! isset( $_item_object_data['menu-item-type'] ) || 896 896 // Or URL is the default. 897 in_array( $_item_object_data['menu-item-url'], array( 'http://', ' https://', '' ) ) ||897 in_array( $_item_object_data['menu-item-url'], array( 'http://', '' ) ) || 898 898 ! ( 'custom' == $_item_object_data['menu-item-type'] && ! isset( $_item_object_data['menu-item-db-id'] ) ) || // or it's not a custom menu item (but not the custom home page) 899 899 // Or it *is* a custom menu item that already exists. 900 900 ! empty( $_item_object_data['menu-item-db-id'] )