Make WordPress Core

Ticket #17453: 17453.patch

File 17453.patch, 2.2 KB (added by peaceablewhale, 14 years ago)
  • wp-includes/default-widgets.php

     
    333333
    334334        function widget( $args, $instance ) {
    335335                extract($args);
    336                 $title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title'], $instance, $this->id_base);
     336                $title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title'], $instance, $this->id_base);
    337337                echo $before_widget;
    338338                if ( $title )
    339339                        echo $before_title . $title . $after_title;
     
    405405
    406406                <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>
    407407
    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); ?> />&#160;<label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs'); ?></label></p>
    409409<?php
    410410        }
    411411}
     
    820820                $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
    821821                $desc = wp_html_excerpt( $desc, 360 );
    822822
    823                 // Append ellipsis. Change existing [...] to [&hellip;].
     823                // Append ellipsis. Change existing [...] to [&#8230;].
    824824                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 ) . '[&#8230;]';
     826                elseif ( '[&#8230;]' != substr( $desc, -10 ) )
     827                        $desc .= ' [&#8230;]';
    828828
    829829                $desc = esc_html( $desc );
    830830