- Timestamp:
- 02/14/2020 12:05:43 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r46604 r47287 46 46 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 47 47 48 $c = ! empty( $instance['count'] ) ? '1' : '0';49 $d = ! empty( $instance['dropdown'] ) ? '1' : '0';48 $count = ! empty( $instance['count'] ) ? '1' : '0'; 49 $dropdown = ! empty( $instance['dropdown'] ) ? '1' : '0'; 50 50 51 51 echo $args['before_widget']; … … 55 55 } 56 56 57 if ( $d ) {57 if ( $dropdown ) { 58 58 $dropdown_id = "{$this->id_base}-dropdown-{$this->number}"; 59 59 ?> … … 77 77 'type' => 'monthly', 78 78 'format' => 'option', 79 'show_post_count' => $c ,79 'show_post_count' => $count, 80 80 ), 81 81 $instance … … 141 141 array( 142 142 'type' => 'monthly', 143 'show_post_count' => $c ,143 'show_post_count' => $count, 144 144 ), 145 145 $instance
Note: See TracChangeset
for help on using the changeset viewer.