[wp-trac] Re: [WordPress Trac] #6500: Calendar widget is broken

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 31 22:12:06 GMT 2008


#6500: Calendar widget is broken
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  normal             |    Milestone:  2.5.1    
Component:  Administration     |      Version:  2.5      
 Severity:  major              |   Resolution:           
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):

 My fixed (and modified) calendar widget, for reference, in case it helps
 to fix the underlying issue:

 {{{
 function widget_calendar($args)
 {
         extract($args);
         echo $before_widget;
         if ( !is_admin() )
         {
                 echo '<div id="calendar_wrap">';
                 get_calendar();
                 echo '</div>';
         }
         echo $after_widget;
 } # widget_calendar()
 }}}

 The get_calendar() function was causing the issue apparently.

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


More information about the wp-trac mailing list