Make WordPress Core


Ignore:
Timestamp:
10/15/2017 10:22:59 PM (8 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/widgets/class-wp-nav-menu-widget.php

    r41867 r41868  
    99
    1010/**
    11  * Core class used to implement the Custom Menu widget.
     11 * Core class used to implement the Navigation Menu widget.
    1212 *
    1313 * @since 3.0.0
     
    1818
    1919    /**
    20      * Sets up a new Custom Menu widget instance.
     20     * Sets up a new Navigation Menu widget instance.
    2121     *
    2222     * @since 3.0.0
     
    2424    public function __construct() {
    2525        $widget_ops = array(
    26             'description' => __( 'Add a custom menu to your sidebar.' ),
     26            'description' => __( 'Add a navigation menu to your sidebar.' ),
    2727            'customize_selective_refresh' => true,
    2828        );
    29         parent::__construct( 'nav_menu', __('Custom Menu'), $widget_ops );
     29        parent::__construct( 'nav_menu', __('Navigation Menu'), $widget_ops );
    3030    }
    3131
    3232    /**
    33      * Outputs the content for the current Custom Menu widget instance.
     33     * Outputs the content for the current Navigation Menu widget instance.
    3434     *
    3535     * @since 3.0.0
     
    3737     * @param array $args     Display arguments including 'before_title', 'after_title',
    3838     *                        'before_widget', and 'after_widget'.
    39      * @param array $instance Settings for the current Custom Menu widget instance.
     39     * @param array $instance Settings for the current Navigation Menu widget instance.
    4040     */
    4141    public function widget( $args, $instance ) {
     
    6464
    6565        /**
    66          * Filters the arguments for the Custom Menu widget.
     66         * Filters the arguments for the Navigation Menu widget.
    6767         *
    6868         * @since 4.2.0
     
    7070         *
    7171         * @param array    $nav_menu_args {
    72          *     An array of arguments passed to wp_nav_menu() to retrieve a custom menu.
     72         *     An array of arguments passed to wp_nav_menu() to retrieve a navigation menu.
    7373         *
    7474         *     @type callable|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty.
     
    8585
    8686    /**
    87      * Handles updating settings for the current Custom Menu widget instance.
     87     * Handles updating settings for the current Navigation Menu widget instance.
    8888     *
    8989     * @since 3.0.0
     
    106106
    107107    /**
    108      * Outputs the settings form for the Custom Menu widget.
     108     * Outputs the settings form for the Navigation Menu widget.
    109109     *
    110110     * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.