Changeset 46330
- Timestamp:
- 09/26/2019 08:30:59 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/nav-menu.js
r46240 r46330 951 951 processMethod = processMethod || api.addMenuItemToBottom; 952 952 953 if ( '' === url || 'http ://' == url ) {953 if ( '' === url || 'https://' == url || 'http://' == url ) { 954 954 $('#customlinkdiv').addClass('form-invalid'); 955 955 return false; … … 963 963 // Set custom link form back to defaults 964 964 $('#custom-menu-item-name').val('').blur(); 965 $( '#custom-menu-item-url').val('http://');965 $( '#custom-menu-item-url' ).val( '' ).attr( 'placeholder', 'https://' ); 966 966 }); 967 967 }, -
trunk/src/js/_enqueues/wp/customize/nav-menus.js
r45979 r46330 585 585 586 586 // Reset the custom link form. 587 itemUrl.val( ' http://' );587 itemUrl.val( '' ).attr( 'placeholder', 'https://' ); 588 588 itemName.val( '' ); 589 589 }, -
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. -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r45932 r46330 1193 1193 <p id="menu-item-url-wrap" class="wp-clearfix"> 1194 1194 <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label> 1195 <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" value="http://">1195 <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" placeholder="https://"> 1196 1196 </p> 1197 1197 <p id="menu-item-name-wrap" class="wp-clearfix">
Note: See TracChangeset
for help on using the changeset viewer.