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/taxonomy.php

    r11190 r11204  
    992992            $value = format_to_edit($value);
    993993        else
    994             $value = attr($value);
     994            $value = esc_attr($value);
    995995    } else if ( 'db' == $context ) {
    996996        $value = apply_filters("pre_term_$field", $value, $taxonomy);
     
    10101010
    10111011    if ( 'attribute' == $context )
    1012         $value = attr($value);
     1012        $value = esc_attr($value);
    10131013    else if ( 'js' == $context )
    10141014        $value = js_escape($value);
     
    22612261
    22622262        foreach ( $terms as $term )
    2263             $links[] = "<a href='" . attr(get_term_link($term, $taxonomy)) . "'>$term->name</a>";
     2263            $links[] = "<a href='" . esc_attr(get_term_link($term, $taxonomy)) . "'>$term->name</a>";
    22642264
    22652265        if ( $links )
Note: See TracChangeset for help on using the changeset viewer.