Changeset 46330 for trunk/src/wp-admin/includes/nav-menu.php
- Timestamp:
- 09/26/2019 08:30:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/nav-menu.php
r46309 r46330 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://" />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" placeholder="https://" /> 296 296 </p> 297 297 … … 919 919 ! isset( $_item_object_data['menu-item-type'] ) || 920 920 // Or URL is the default. 921 in_array( $_item_object_data['menu-item-url'], array( 'http ://', '' ) ) ||921 in_array( $_item_object_data['menu-item-url'], array( 'https://', 'http://', '' ) ) || 922 922 ! ( '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) 923 923 // Or it *is* a custom menu item that already exists.
Note: See TracChangeset
for help on using the changeset viewer.