Make WordPress Core


Ignore:
Timestamp:
10/15/2017 10:22:59 PM (7 years ago)
Author:
westonruter
Message:

Widgets: Rename "Custom Menu" widget to "Navigation Menu".

Props gk.loveweb, ChrisHardie, ajayghaghretiya1, melchoyce.
Fixes #40442.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r41823 r41868  
    557557        if ( current_theme_supports( 'widgets' ) ) {
    558558            /* translators: URL to the widgets panel of the customizer */
    559             $description .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme or in <a href="%s">widget areas</a> by adding a &#8220;Custom Menu&#8221; widget.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>';
     559            $description .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme or in <a href="%s">widget areas</a> by adding a &#8220;Navigation Menu&#8221; widget.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>';
    560560        } else {
    561561            $description .= '<p>' . __( 'Menus can be displayed in locations defined by your theme.' ) . '</p>';
     
    581581        if ( current_theme_supports( 'widgets' ) ) {
    582582            /* translators: URL to the widgets panel of the customizer */
    583             $description .= '<p>' . sprintf( __( 'If your theme has widget areas, you can also add menus there. Visit the <a href="%s">Widgets panel</a> and add a &#8220;Custom Menu widget&#8221; to display a menu in a sidebar or footer.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>';
     583            $description .= '<p>' . sprintf( __( 'If your theme has widget areas, you can also add menus there. Visit the <a href="%s">Widgets panel</a> and add a &#8220;Navigation Menu widget&#8221; to display a menu in a sidebar or footer.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>';
    584584        }
    585585
     
    762762         * @since 4.7.0  Each array item now includes a `$type_label` in addition to `$title`, `$type`, and `$object`.
    763763         *
    764          * @param array $item_types Custom menu item types.
     764         * @param array $item_types Navigation menu item types.
    765765         */
    766766        $item_types = apply_filters( 'customize_nav_menu_available_item_types', $item_types );
Note: See TracChangeset for help on using the changeset viewer.