Make WordPress Core

Ticket #31344: 31344.patch

File 31344.patch, 2.9 KB (added by tyxla, 8 years ago)

Changing Links and Custom to Custom Link(s) in administration nav menu interface.

  • src/wp-admin/includes/nav-menu.php

     
    444444function wp_nav_menu_setup() {
    445445        // Register meta boxes
    446446        wp_nav_menu_post_type_meta_boxes();
    447         add_meta_box( 'add-custom-links', __( 'Links' ), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' );
     447        add_meta_box( 'add-custom-links', __( 'Custom Links' ), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' );
    448448        wp_nav_menu_taxonomy_meta_boxes();
    449449
    450450        // Register advanced menu items (columns)
  • src/wp-admin/nav-menus.php

     
    517517        $editing_menus  = '<p>' . __( 'Each custom menu may contain a mix of links to pages, categories, custom URLs or other content types. Menu links are added by selecting items from the expanding boxes in the left-hand column below.' ) . '</p>';
    518518        $editing_menus .= '<p>' . __( '<strong>Clicking the arrow to the right of any menu item</strong> in the editor will reveal a standard group of settings. Additional settings such as link target, CSS classes, link relationships, and link descriptions can be enabled and disabled via the Screen Options tab.' ) . '</p>';
    519519        $editing_menus .= '<ul><li>' . __( 'Add one or several items at once by <strong>selecting the checkbox next to each item and clicking Add to Menu</strong>' ) . '</li>';
    520         $editing_menus .= '<li>' . __( 'To add a custom link, <strong>expand the Links section, enter a URL and link text, and click Add to Menu</strong>' ) .'</li>';
     520        $editing_menus .= '<li>' . __( 'To add a custom link, <strong>expand the Custom Links section, enter a URL and link text, and click Add to Menu</strong>' ) .'</li>';
    521521        $editing_menus .= '<li>' . __( 'To reorganize menu items, <strong>drag and drop items with your mouse or use your keyboard</strong>. Drag or move a menu item a little to the right to make it a submenu' ) . '</li>';
    522522        $editing_menus .= '<li>' . __( 'Delete a menu item by <strong>expanding it and clicking the Remove link</strong>' ) . '</li></ul>';
    523523
  • src/wp-includes/nav-menu.php

     
    688688                                $menu_item->title = '' == $menu_item->post_title ? $original_title : $menu_item->post_title;
    689689
    690690                        } else {
    691                                 $menu_item->type_label = __('Custom');
     691                                $menu_item->type_label = __('Custom Link');
    692692                                $menu_item->title = $menu_item->post_title;
    693693                                $menu_item->url = empty( $menu_item->url ) ? get_post_meta( $menu_item->ID, '_menu_item_url', true ) : $menu_item->url;
    694694                        }