WordPress.org

Make WordPress Core


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

Docs: Add missing description for wp_convert_widget_settings() parameters.

Props stevenlinx.
Fixes #50738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.