- Timestamp:
- 02/14/2020 12:05:43 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-categories.php
r47122 r47287 50 50 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 51 51 52 $c = ! empty( $instance['count'] ) ? '1' : '0';53 $h = ! empty( $instance['hierarchical'] ) ? '1' : '0';54 $d = ! empty( $instance['dropdown'] ) ? '1' : '0';52 $count = ! empty( $instance['count'] ) ? '1' : '0'; 53 $hierarchical = ! empty( $instance['hierarchical'] ) ? '1' : '0'; 54 $dropdown = ! empty( $instance['dropdown'] ) ? '1' : '0'; 55 55 56 56 echo $args['before_widget']; … … 62 62 $cat_args = array( 63 63 'orderby' => 'name', 64 'show_count' => $c ,65 'hierarchical' => $h ,64 'show_count' => $count, 65 'hierarchical' => $hierarchical, 66 66 ); 67 67 68 if ( $d ) {68 if ( $dropdown ) { 69 69 echo sprintf( '<form action="%s" method="get">', esc_url( home_url() ) ); 70 70 $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}";
Note: See TracChangeset
for help on using the changeset viewer.