Changeset 34381
- Timestamp:
- 09/22/2015 05:08:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-calendar.php
r33954 r34381 8 8 */ 9 9 class WP_Widget_Calendar extends WP_Widget { 10 /** 11 * Ensure that the ID attribute only appears in the markup once 12 * 13 * @since 4.4.0 14 * 15 * @static 16 * @access private 17 * @var int 18 */ 19 private static $instance = 0; 10 20 11 21 public function __construct() { … … 26 36 echo $args['before_title'] . $title . $args['after_title']; 27 37 } 28 echo '<div id="calendar_wrap">'; 38 if ( 0 === self::$instance ) { 39 echo '<div id="calendar_wrap" class="calendar_wrap">'; 40 } else { 41 echo '<div class="calendar_wrap">'; 42 } 29 43 get_calendar(); 30 44 echo '</div>'; 31 45 echo $args['after_widget']; 46 47 self::$instance++; 32 48 } 33 49
Note: See TracChangeset
for help on using the changeset viewer.