Ticket #18601: 18601.patch
| File 18601.patch, 1.2 KB (added by , 15 years ago) |
|---|
-
wp-includes/default-widgets.php
220 220 221 221 function widget( $args, $instance ) { 222 222 extract($args); 223 $c = $instance['count']? '1' : '0';224 $d = $instance['dropdown']? '1' : '0';223 $c = ( ! empty( $instance['count'] ) ) ? '1' : '0'; 224 $d = ( ! empty( $instance['dropdown'] ) ) ? '1' : '0'; 225 225 $title = apply_filters('widget_title', empty($instance['title']) ? __('Archives') : $instance['title'], $instance, $this->id_base); 226 226 227 227 echo $before_widget; … … 426 426 extract( $args ); 427 427 428 428 $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base); 429 $c = $instance['count']? '1' : '0';430 $h = $instance['hierarchical']? '1' : '0';431 $d = $instance['dropdown']? '1' : '0';429 $c = ( ! empty( $instance['count'] ) ) ? '1' : '0'; 430 $h = ( ! empty( $instance['hierarchical'] ) ) ? '1' : '0'; 431 $d = ( ! empty( $instance['dropdown'] ) ) ? '1' : '0'; 432 432 433 433 echo $before_widget; 434 434 if ( $title )