Make WordPress Core

Ticket #46317: 46317.diff

File 46317.diff, 1.3 KB (added by mukesh27, 5 years ago)

Patch.

  • wp-includes/class-wp-customize-nav-menus.php

    diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php
    index a6bae20..f82c855 100644
    a b final class WP_Customize_Nav_Menus { 
    11741174         * @return void
    11751175         */
    11761176        protected function print_custom_links_available_menu_item() {
     1177
     1178                $_nav_custom_menu_item_url = is_ssl() ? 'https://' : 'http://';
     1179               
    11771180                ?>
    11781181                <div id="new-custom-menu-item" class="accordion-section">
    11791182                        <h4 class="accordion-section-title" role="presentation">
    final class WP_Customize_Nav_Menus { 
    11871190                                <input type="hidden" value="custom" id="custom-menu-item-type" name="menu-item[-1][menu-item-type]" />
    11881191                                <p id="menu-item-url-wrap" class="wp-clearfix">
    11891192                                        <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label>
    1190                                         <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" value="http://">
     1193                                        <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" value="" placeholder="<?php echo $_nav_custom_menu_item_url; ?>" />
    11911194                                </p>
    11921195                                <p id="menu-item-name-wrap" class="wp-clearfix">
    11931196                                        <label class="howto" for="custom-menu-item-name"><?php _e( 'Link Text' ); ?></label>