Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (16 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

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

    r10339 r11204  
    416416 * @access private
    417417 * @since 1.0.0
    418  * @uses wp_kses_attr()
     418 * @uses wp_kses_esc_attr()
    419419 *
    420420 * @param string $string Content to filter
     
    460460    # No attributes are allowed for closing elements
    461461
    462     return wp_kses_attr("$slash$elem", $attrlist, $allowed_html, $allowed_protocols);
     462    return wp_kses_esc_attr("$slash$elem", $attrlist, $allowed_html, $allowed_protocols);
    463463}
    464464
     
    480480 * @return string Sanitized HTML element
    481481 */
    482 function wp_kses_attr($element, $attr, $allowed_html, $allowed_protocols) {
     482function wp_kses_esc_attr($element, $attr, $allowed_html, $allowed_protocols) {
    483483    # Is there a closing XHTML slash at the end of the attributes?
    484484
Note: See TracChangeset for help on using the changeset viewer.