[wp-trac] [WordPress Trac] #22116: bug in dynamic_sidebar function

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 8 09:07:40 UTC 2012


#22116: bug in dynamic_sidebar function
-------------------------------+------------------------------
 Reporter:  alexvorn2          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Widgets            |     Version:  3.4.2
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by alexvorn2):

 I was using other id and names, and wanted to show an example but it seems
 I must share the original code, here it is...
 try this please:

 {{{

         $name = 'Widget Area 121';

         register_sidebar( array(
                 'name' => $name,
                 'id' => 'widget-area-127',
                 'description' => 'Widget Area 127',
                 'before_widget' => '<div id="%1$s" class="widget %2$s">',
                 'after_widget' => '<div style="clear:
 both;"></div></div>',
                 'before_title' => '<h3 class="widget-title">',
                 'after_title' => '</h3>',
         ) );

         register_sidebar( array(
                 'name' => $name,
                 'id' => 'widget-area-121',
                 'description' => 'Widget Area 121',
                 'before_widget' => '<div id="%1$s" class="widget %2$s">',
                 'after_widget' => '<div style="clear:
 both;"></div></div>',
                 'before_title' => '<h3 class="widget-title">',
                 'after_title' => '</h3>',
         ) );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22116#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list