WordPress.org

Make WordPress Core

Changeset 11707


Ignore:
Timestamp:
07/11/09 04:18:26 (6 years ago)
Author:
azaozz
Message:

Properly escape the title in the feed widget, props nbachiyski, fixes #10378 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r11651 r11707  
    713713            $desc = esc_attr(strip_tags(@html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset')))); 
    714714            if ( empty($title) ) 
    715                 $title = htmlentities(strip_tags($rss->get_title())); 
     715                $title = esc_html(strip_tags($rss->get_title())); 
    716716            $link = esc_url(strip_tags($rss->get_permalink())); 
    717717            while ( stristr($link, 'http') != $link ) 
Note: See TracChangeset for help on using the changeset viewer.