Make WordPress Core

Changeset 59702


Ignore:
Timestamp:
01/24/2025 09:18:05 PM (4 months ago)
Author:
audrasjb
Message:

Docs: Various Docblock fixes in wp-includes/widgets.php, as per WP Docs standards;

Props ankitpatel1578, sabernhardt.
Fixes #62859.
See #62281.

File:
1 edited

Legend:

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

    r59600 r59702  
    44 *
    55 * This API is used for creating dynamic sidebar without hardcoding functionality into
    6  * themes
     6 * themes.
    77 *
    88 * Includes both internal WordPress routines and theme-use routines.
     
    104104
    105105/**
    106  * Register a widget
     106 * Registers a widget.
    107107 *
    108108 * Registers a WP_Widget widget
     
    227227 *
    228228 * If theme support for 'widgets' has not yet been added when this function is
    229  * called, it will be automatically enabled through the use of add_theme_support()
     229 * called, it will be automatically enabled through the use of add_theme_support().
    230230 *
    231231 * @since 2.2.0
     
    362362
    363363/**
    364  * Register an instance of a widget.
     364 * Registers an instance of a widget.
    365365 *
    366366 * The default widget option is 'classname' that can be overridden.
     
    436436
    437437/**
    438  * Retrieve description for widget.
     438 * Retrieves description for widget.
    439439 *
    440440 * When registering widgets, the options can also include 'description' that
     
    462462
    463463/**
    464  * Retrieve description for a sidebar.
     464 * Retrieves description for a sidebar.
    465465 *
    466466 * When registering sidebars a 'description' parameter can be included that
     
    670670
    671671/**
    672  * Remove control callback for widget.
     672 * Removes control callback for widget.
    673673 *
    674674 * @since 2.2.0
     
    681681
    682682/**
    683  * Display dynamic sidebar.
     683 * Displays dynamic sidebar.
    684684 *
    685685 * By default this displays the default sidebar or 'sidebar-1'. If your theme specifies the 'id' or
     
    884884 * Determines whether a given widget is displayed on the front end.
    885885 *
    886  * Either $callback or $id_base can be used
    887  * $id_base is the first argument when extending WP_Widget class
     886 * Either $callback or $id_base can be used.
     887 * $id_base is the first argument when extending WP_Widget class.
    888888 * Without the optional $widget_id parameter, returns the ID of the first sidebar
    889889 * in which the first instance of the widget with the given callback or $id_base is found.
     
    10031003
    10041004/**
    1005  * Retrieve full list of sidebars and their widget instance IDs.
     1005 * Retrieves the full list of sidebars and their widget instance IDs.
    10061006 *
    10071007 * Will upgrade sidebar widget list, if needed. Will also save updated list, if
     
    10821082
    10831083/**
    1084  * Set the sidebar widget option to update sidebars.
     1084 * Sets the sidebar widget option to update sidebars.
    10851085 *
    10861086 * @since 2.2.0
     
    11041104
    11051105/**
    1106  * Retrieve default registered sidebars list.
     1106 * Retrieves default registered sidebars list.
    11071107 *
    11081108 * @since 2.2.0
     
    11951195
    11961196/**
    1197  * Output an arbitrary widget as a template tag.
     1197 * Outputs an arbitrary widget as a template tag.
    11981198 *
    11991199 * @since 2.8.0
     
    12831283
    12841284/**
    1285  * Handle sidebars config after theme change
     1285 * Handles sidebars config after theme change.
    12861286 *
    12871287 * @access private
     
    15761576
    15771577/**
    1578  * Display the RSS entries in a list.
     1578 * Displays the RSS entries in a list.
    15791579 *
    15801580 * @since 2.5.0
     
    16831683
    16841684/**
    1685  * Display RSS widget options form.
     1685 * Displays RSS widget options form.
    16861686 *
    16871687 * The options for what fields are displayed for the RSS form are all booleans
     
    17641764
    17651765/**
    1766  * Process RSS feed widget data and optionally retrieve feed items.
     1766 * Processes RSS feed widget data and optionally retrieve feed items.
    17671767 *
    17681768 * The feed widget can not have more than 20 items or it will reset back to the
     
    18841884
    18851885/**
    1886  * Whether or not to use the block editor to manage widgets. Defaults to true
    1887  * unless a theme has removed support for widgets-block-editor or a plugin has
    1888  * filtered the return value of this function.
     1886 * Determines whether or not to use the block editor to manage widgets.
     1887 * Defaults to true unless a theme has removed support for widgets-block-editor
     1888 * or a plugin has filtered the return value of this function.
    18891889 *
    18901890 * @since 5.8.0
Note: See TracChangeset for help on using the changeset viewer.