From 9db9343826b4b9724aad195aae5da0620d6a6dec Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 11 Nov 2020 10:39:09 +0000 Subject: [PATCH] Docs: Clarify `sprintf()` usage for the `before_widget` argument of `register_sidebar()`. Follow-up to [49203], [49560]. See #19709. Built from https://develop.svn.wordpress.org/trunk@49561 git-svn-id: http://core.svn.wordpress.org/trunk@49299 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/widgets.php | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 77ac5c1eb1..4aaae3250a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49560'; +$wp_version = '5.6-beta3-49561'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index b30452e1fd..db06222a51 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -234,16 +234,17 @@ function register_sidebars( $number = 1, $args = array() ) { * Default empty string. * @type string $class Extra CSS class to assign to the sidebar in the Widgets interface. * Default empty. - * @type string $before_widget HTML content to prepend to each widget's HTML output when - * assigned to this sidebar. Default is an opening list item element. - * @type string $after_widget HTML content to append to each widget's HTML output when - * assigned to this sidebar. Default is a closing list item element. + * @type string $before_widget HTML content to prepend to each widget's HTML output when assigned + * to this sidebar. Receives the widget's ID attribute as `%1$s` + * and class name as `%2$s`. Default is an opening list item element. + * @type string $after_widget HTML content to append to each widget's HTML output when assigned + * to this sidebar. Default is a closing list item element. * @type string $before_title HTML content to prepend to the sidebar title when displayed. * Default is an opening h2 element. * @type string $after_title HTML content to append to the sidebar title when displayed. * Default is a closing h2 element. * @type string $before_sidebar HTML content to prepend to the sidebar when displayed. - * Receives the '$id' argument as %1$s and '$class' as %2$s. + * Receives the `$id` argument as `%1$s` and `$class` as `%2$s`. * Outputs after the {@see 'dynamic_sidebar_before'} action. * Default empty string. * @type string $after_sidebar HTML content to append to the sidebar when displayed.