Ticket #24604: 24604.2.diff
| File 24604.2.diff, 930 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/default-widgets.php
431 431 */ 432 432 class WP_Widget_Calendar extends WP_Widget { 433 433 434 private $show_id = true; 435 434 436 public function __construct() { 435 437 $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your site’s Posts.') ); 436 438 parent::__construct('calendar', __('Calendar'), $widget_ops); … … 445 447 if ( $title ) { 446 448 echo $args['before_title'] . $title . $args['after_title']; 447 449 } 448 echo '<div id="calendar_wrap">'; 450 if( $this->show_id ) { 451 echo '<div id="calendar_wrap" class="calendar_wrap">'; 452 $this->show_id = false; 453 } else { 454 echo '<div class="calendar_wrap">'; 455 } 449 456 get_calendar(); 450 457 echo '</div>'; 451 458 echo $args['after_widget'];