Make WordPress Core

Ticket #30315: 30315.4.diff

File 30315.4.diff, 1.1 KB (added by blobaugh, 10 years ago)

Added array parameter documentation to wp_widget_control

  • wp-admin/includes/widgets.php

    diff --git wp-admin/includes/widgets.php wp-admin/includes/widgets.php
    index c869449..693b4cf 100644
    function next_widget_id_number($id_base) { 
    143143 *
    144144 * @since 2.5.0
    145145 *
    146  * @param array $sidebar_args
     146 * @param array $sidebar_args {
     147 *              @type string $name Display name of sidebar to display widget on.
     148 *              @type string $id ID of sidebar to display widget on.
     149 *              @type string $description Description of widget.
     150 *              @type string $class Widget class.
     151 *              @type string $before_widget Content/markup to display before the widget displays.
     152 *              @type string $after_widget Content/markup to display after the widget displays.
     153 *              @type string $before_title Content/markup to display before the widget title.
     154 *              @type string $after_title Content/markkup to display after the widget title.
     155 *              @type string widget_id Id of widget to be displayed on sidebar.
     156 *              @type string widget_name Display name of widget for sidebar.
     157 * }
    147158 * @return array
    148159 */
    149160function wp_widget_control( $sidebar_args ) {