From 32350a810387788cceb9aca1b64cd3f91b22a12a Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Thu, 10 Apr 2014 19:03:23 -0700 Subject: [PATCH] _s: Encourage the use of sidebar descriptions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sidebar descriptions provide an opportunity to provide context about where the sidebar is located or when it is loaded. We should encourage theme developers to use them, similar to how we hint default images for custom headers and backgrounds. The callback’s outdated documentation describes the function in an early state of Toolbox (introduced in r3678-wpcom-themes), the earliest public record would be https://themes.trac.wordpress.org/browser/toolbox/0.3/functions.php#L99 This is as good an opportunity to update it as any. Props @emiluzelac for initial patch. Fixes #433. --- functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 928053f..ff2207a 100644 --- a/functions.php +++ b/functions.php @@ -66,12 +66,15 @@ endif; // _s_setup add_action( 'after_setup_theme', '_s_setup' ); /** - * Register widgetized area and update sidebar with default widgets. + * Register widget area. + * + * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function _s_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', '_s' ), 'id' => 'sidebar-1', + 'description' => '', 'before_widget' => '', 'before_title' => '

',