WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/18/2009 03:11:07 PM (11 years ago)
Author:
markjaquith
Message:

deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security.

File:
1 edited

Legend:

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

    r11374 r11380  
    602602
    603603    if ( isset($wp_registered_widgets[$id]['description']) )
    604         return wp_specialchars( $wp_registered_widgets[$id]['description'] );
     604        return esc_html( $wp_registered_widgets[$id]['description'] );
    605605}
    606606
Note: See TracChangeset for help on using the changeset viewer.