Ticket #24604: 24604.3.diff
| File 24604.3.diff, 984 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/widgets/class-wp-widget-calendar.php
8 8 */ 9 9 class WP_Widget_Calendar extends WP_Widget { 10 10 11 private $show_id = true; 12 11 13 public function __construct() { 12 14 $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your site’s Posts.') ); 13 15 parent::__construct('calendar', __('Calendar'), $widget_ops); … … 25 27 if ( $title ) { 26 28 echo $args['before_title'] . $title . $args['after_title']; 27 29 } 28 echo '<div id="calendar_wrap">'; 30 if( true === $this->show_id ) { 31 echo '<div id="calendar_wrap" class="calendar_wrap">'; 32 $this->show_id = false; 33 } else { 34 echo '<div class="calendar_wrap">'; 35 } 29 36 get_calendar(); 30 37 echo '</div>'; 31 38 echo $args['after_widget'];