Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:00:07 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.

See #49572.

File:
1 edited

Legend:

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

    r47935 r48104  
    4343
    4444/**
    45  * Stores the registered widget control (options).
     45 * Stores the registered widget controls (options).
    4646 *
    4747 * @global array $wp_registered_widget_controls
     
    156156 *
    157157 *     @type string $id   The base string of the unique identifier for each sidebar. If provided, and multiple
    158  *                        sidebars are being defined, the id will have "-2" appended, and so on.
     158 *                        sidebars are being defined, the ID will have "-2" appended, and so on.
    159159 *                        Default 'sidebar-' followed by the number the sidebar creation is currently at.
    160160 *     @type string $name The name or title for the sidebars displayed in the admin dashboard. If registering
     
    221221 * @since 2.2.0
    222222 *
    223  * @global array $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID.
     223 * @global array $wp_registered_sidebars Registered sidebars.
    224224 *
    225225 * @param array|string $args {
     
    310310 * @since 2.2.0
    311311 *
    312  * @global array $wp_registered_sidebars Removes the sidebar from this array by sidebar ID.
     312 * @global array $wp_registered_sidebars Registered sidebars.
    313313 *
    314314 * @param string|int $sidebar_id The ID of the sidebar when it was registered.
     
    656656 *
    657657 * By default this displays the default sidebar or 'sidebar-1'. If your theme specifies the 'id' or
    658  * 'name' parameter for its registered sidebars you can pass an id or name as the $index parameter.
     658 * 'name' parameter for its registered sidebars you can pass an ID or name as the $index parameter.
    659659 * Otherwise, you can pass in a numerical index to display the sidebar at that index.
    660660 *
     
    662662 *
    663663 * @global array $wp_registered_sidebars Registered sidebars.
    664  * @global array $wp_registered_widgets
     664 * @global array $wp_registered_widgets  Registered widgets.
    665665 *
    666666 * @param int|string $index Optional, default is 1. Index, name or ID of dynamic sidebar.
     
    898898 * @since 2.2.0
    899899 *
    900  * @global array $wp_registered_widgets
     900 * @global array $wp_registered_widgets  Registered widgets.
    901901 * @global array $wp_registered_sidebars Registered sidebars.
    902902 *
     
    12271227 * @global array $wp_registered_sidebars Registered sidebars.
    12281228 * @global array $sidebars_widgets
    1229  * @global array $wp_registered_widgets
     1229 * @global array $wp_registered_widgets  Registered widgets.
    12301230 *
    12311231 * @param string|bool $theme_changed Whether the theme was changed as a boolean. A value
     
    16771677 *
    16781678 * @param array $widget_rss RSS widget feed data. Expects unescaped data.
    1679  * @param bool $check_feed Optional, default is true. Whether to check feed for errors.
     1679 * @param bool  $check_feed Optional. Whether to check feed for errors. Default true.
    16801680 * @return array
    16811681 */
Note: See TracChangeset for help on using the changeset viewer.