- Timestamp:
- 10/15/2017 10:22:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php
r41867 r41868 9 9 10 10 /** 11 * Core class used to implement the CustomMenu widget.11 * Core class used to implement the Navigation Menu widget. 12 12 * 13 13 * @since 3.0.0 … … 18 18 19 19 /** 20 * Sets up a new CustomMenu widget instance.20 * Sets up a new Navigation Menu widget instance. 21 21 * 22 22 * @since 3.0.0 … … 24 24 public function __construct() { 25 25 $widget_ops = array( 26 'description' => __( 'Add a custommenu to your sidebar.' ),26 'description' => __( 'Add a navigation menu to your sidebar.' ), 27 27 'customize_selective_refresh' => true, 28 28 ); 29 parent::__construct( 'nav_menu', __(' CustomMenu'), $widget_ops );29 parent::__construct( 'nav_menu', __('Navigation Menu'), $widget_ops ); 30 30 } 31 31 32 32 /** 33 * Outputs the content for the current CustomMenu widget instance.33 * Outputs the content for the current Navigation Menu widget instance. 34 34 * 35 35 * @since 3.0.0 … … 37 37 * @param array $args Display arguments including 'before_title', 'after_title', 38 38 * 'before_widget', and 'after_widget'. 39 * @param array $instance Settings for the current CustomMenu widget instance.39 * @param array $instance Settings for the current Navigation Menu widget instance. 40 40 */ 41 41 public function widget( $args, $instance ) { … … 64 64 65 65 /** 66 * Filters the arguments for the CustomMenu widget.66 * Filters the arguments for the Navigation Menu widget. 67 67 * 68 68 * @since 4.2.0 … … 70 70 * 71 71 * @param array $nav_menu_args { 72 * An array of arguments passed to wp_nav_menu() to retrieve a custommenu.72 * An array of arguments passed to wp_nav_menu() to retrieve a navigation menu. 73 73 * 74 74 * @type callable|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty. … … 85 85 86 86 /** 87 * Handles updating settings for the current CustomMenu widget instance.87 * Handles updating settings for the current Navigation Menu widget instance. 88 88 * 89 89 * @since 3.0.0 … … 106 106 107 107 /** 108 * Outputs the settings form for the CustomMenu widget.108 * Outputs the settings form for the Navigation Menu widget. 109 109 * 110 110 * @since 3.0.0
Note: See TracChangeset
for help on using the changeset viewer.