[wp-trac] Re: [WordPress Trac] #4258: Widgets don't show up with new integrated widgets.php

WordPress Trac wp-trac at lists.automattic.com
Sun May 13 18:28:36 GMT 2007


#4258: Widgets don't show up with new integrated widgets.php
--------------------------------------+-------------------------------------
 Reporter:  kretzschmar               |        Owner:  anonymous
     Type:  defect                    |       Status:  new      
 Priority:  high                      |    Milestone:           
Component:  General                   |      Version:  2.2      
 Severity:  normal                    |   Resolution:           
 Keywords:  widgets, dynamic_sidebar  |  
--------------------------------------+-------------------------------------
Comment (by technosailor):

 I can confirm that this is indeed a problem, even in the latest revision
 of 2.2 r5466. I tested on an existing widgetized 2.1.3 blog with a custom
 theme that has no id paramter, only a name parameter. The name paramter is
 respected in terms of name, but widget are not properly placed in the
 sidebars. In fact it's as if the widgetized sidebar did not exist. As an
 example, in this case, in %theme%/functions.php we use:

 `if ( function_exists('register_sidebar') )
     register_sidebar(array(
         'before_widget' => '<div id="%1$s" class="widget wide %2$s">',
         'after_widget'  => '</div>',
         'before_title'  => '<h2 class="title">',
         'after_title'   => '</h2>',
                         'name' => 'Full width - top'
     )
     );`
 and in the sidebar.php:

 `                               <?php if (
 !function_exists('dynamic_sidebar')
                                         || !dynamic_sidebar('Full width -
 top') ) : ?>`

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4258#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list