Ticket #17453: 17453.patch
File 17453.patch, 2.2 KB (added by , 14 years ago) |
---|
-
wp-includes/default-widgets.php
333 333 334 334 function widget( $args, $instance ) { 335 335 extract($args); 336 $title = apply_filters('widget_title', empty($instance['title']) ? '& nbsp;' : $instance['title'], $instance, $this->id_base);336 $title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title'], $instance, $this->id_base); 337 337 echo $before_widget; 338 338 if ( $title ) 339 339 echo $before_title . $title . $after_title; … … 405 405 406 406 <textarea class="widefat" rows="16" cols="20" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea> 407 407 408 <p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> />& nbsp;<label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs'); ?></label></p>408 <p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs'); ?></label></p> 409 409 <?php 410 410 } 411 411 } … … 820 820 $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) ); 821 821 $desc = wp_html_excerpt( $desc, 360 ); 822 822 823 // Append ellipsis. Change existing [...] to [& hellip;].823 // Append ellipsis. Change existing [...] to […]. 824 824 if ( '[...]' == substr( $desc, -5 ) ) 825 $desc = substr( $desc, 0, -5 ) . '[& hellip;]';826 elseif ( '[& hellip;]' != substr( $desc, -10 ) )827 $desc .= ' [& hellip;]';825 $desc = substr( $desc, 0, -5 ) . '[…]'; 826 elseif ( '[…]' != substr( $desc, -10 ) ) 827 $desc .= ' […]'; 828 828 829 829 $desc = esc_html( $desc ); 830 830