Make WordPress Core


Ignore:
Timestamp:
12/10/2020 11:57:29 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Various docblock improvements.

See #51800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r49561 r49790  
    803803         * @since 3.0.0
    804804         *
    805          * @param array $widget_id {
     805         * @param array $widget {
    806806         *     An associative array of widget arguments.
    807807         *
    808808         *     @type string   $name        Name of the widget.
    809809         *     @type string   $id          Widget ID.
    810          *     @type callable $callback    When the hook is fired on the front end, $callback is an array
    811          *                                 containing the widget object. Fired on the back end, $callback
    812          *                                 is 'wp_widget_control', see $_callback.
     810         *     @type callable $callback    When the hook is fired on the front end, `$callback` is an array
     811         *                                 containing the widget object. Fired on the back end, `$callback`
     812         *                                 is 'wp_widget_control', see `$_callback`.
    813813         *     @type array    $params      An associative array of multi-widget arguments.
    814814         *     @type string   $classname   CSS class applied to the widget container.
    815815         *     @type string   $description The widget description.
    816          *     @type array    $_callback   When the hook is fired on the back end, $_callback is populated
    817          *                                 with an array containing the widget object, see $callback.
     816         *     @type array    $_callback   When the hook is fired on the back end, `$_callback` is populated
     817         *                                 with an array containing the widget object, see `$callback`.
    818818         * }
    819819         */
Note: See TracChangeset for help on using the changeset viewer.