Make WordPress Core

Changeset 48580


Ignore:
Timestamp:
07/23/2020 01:48:37 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for wp_convert_widget_settings() parameters.

Props stevenlinx.
Fixes #50738.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r47936 r48580  
    152152     * @since 2.8.0
    153153     *
    154      * @param string $id_base         Optional Base ID for the widget, lowercase and unique. If left empty,
     154     * @param string $id_base         Optional. Base ID for the widget, lowercase and unique. If left empty,
    155155     *                                a portion of the widget's class name will be used. Has to be unique.
    156156     * @param string $name            Name for the widget displayed on the configuration page.
     
    182182     * @see WP_Widget::__construct()
    183183     *
    184      * @param string $id_base         Optional Base ID for the widget, lowercase and unique. If left empty,
     184     * @param string $id_base         Optional. Base ID for the widget, lowercase and unique. If left empty,
    185185     *                                a portion of the widget's class name will be used. Has to be unique.
    186186     * @param string $name            Name for the widget displayed on the configuration page.
  • trunk/src/wp-includes/widgets.php

    r48473 r48580  
    10471047
    10481048/**
    1049  * Convert the widget settings from single to multi-widget format.
     1049 * Converts the widget settings from single to multi-widget format.
    10501050 *
    10511051 * @since 2.8.0
     
    10531053 * @global array $_wp_sidebars_widgets
    10541054 *
    1055  * @param string $base_name
    1056  * @param string $option_name
    1057  * @param array  $settings
    1058  * @return array
     1055 * @param string $base_name   Root ID for all widgets of this type.
     1056 * @param string $option_name Option name for this widget type.
     1057 * @param array  $settings    The array of widget instance settings.
     1058 * @return array The array of widget settings converted to multi-widget format.
    10591059 */
    10601060function wp_convert_widget_settings( $base_name, $option_name, $settings ) {
     
    10621062    $single  = false;
    10631063    $changed = false;
     1064
    10641065    if ( empty( $settings ) ) {
    10651066        $single = true;
Note: See TracChangeset for help on using the changeset viewer.