WordPress.org

Make WordPress Core

Changeset 49561


Ignore:
Timestamp:
11/11/2020 10:37:33 AM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify sprintf() usage for the before_widget argument of register_sidebar().

Follow-up to [49203], [49560].

See #19709.

File:
1 edited

Legend:

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

    r49560 r49561  
    235235 *     @type string $class          Extra CSS class to assign to the sidebar in the Widgets interface.
    236236 *                                  Default empty.
    237  *     @type string $before_widget  HTML content to prepend to each widget's HTML output when
    238  *                                  assigned to this sidebar. Default is an opening list item element.
    239  *     @type string $after_widget   HTML content to append to each widget's HTML output when
    240  *                                  assigned to this sidebar. Default is a closing list item element.
     237 *     @type string $before_widget  HTML content to prepend to each widget's HTML output when assigned
     238 *                                  to this sidebar. Receives the widget's ID attribute as `%1$s`
     239 *                                  and class name as `%2$s`. Default is an opening list item element.
     240 *     @type string $after_widget   HTML content to append to each widget's HTML output when assigned
     241 *                                  to this sidebar. Default is a closing list item element.
    241242 *     @type string $before_title   HTML content to prepend to the sidebar title when displayed.
    242243 *                                  Default is an opening h2 element.
     
    244245 *                                  Default is a closing h2 element.
    245246 *     @type string $before_sidebar HTML content to prepend to the sidebar when displayed.
    246  *                                  Receives the '$id' argument as %1$s and '$class' as %2$s.
     247 *                                  Receives the `$id` argument as `%1$s` and `$class` as `%2$s`.
    247248 *                                  Outputs after the {@see 'dynamic_sidebar_before'} action.
    248249 *                                  Default empty string.
Note: See TracChangeset for help on using the changeset viewer.