WordPress.org

Make WordPress Core

Changeset 16031


Ignore:
Timestamp:
10/28/2010 06:30:59 AM (8 years ago)
Author:
nacin
Message:

Use esc_html. Ancient, deprecated functions, but a valid fix nonetheless. fixes #14199.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r16025 r16031  
    555555 * @subpackage Option
    556556 * @since 1.0.0
    557  * @link http://alex.vort-x.net/blog/ Thanks Alex Stapleton
    558557 *
    559558 * @uses do_action() Calls 'add_option' hook before adding the option.
  • trunk/wp-includes/rss.php

    r13848 r16031  
    892892                esc_url( $item['link'] ),
    893893                esc_attr( strip_tags( $item['description'] ) ),
    894                 htmlentities( $item['title'] )
     894                esc_html( $item['title'] )
    895895            );
    896896        }
     
    927927            echo "<li>\n";
    928928            echo "<a href='$item[link]' title='$item[description]'>";
    929             echo htmlentities($item['title']);
     929            echo esc_html($item['title']);
    930930            echo "</a><br />\n";
    931931            echo "</li>\n";
Note: See TracChangeset for help on using the changeset viewer.