Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 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/post.php

    r11202 r11204  
    870870                $value = format_to_edit($value);
    871871        } else {
    872             $value = attr($value);
     872            $value = esc_attr($value);
    873873        }
    874874    } else if ( 'db' == $context ) {
     
    889889
    890890    if ( 'attribute' == $context )
    891         $value = attr($value);
     891        $value = esc_attr($value);
    892892    else if ( 'js' == $context )
    893893        $value = js_escape($value);
Note: See TracChangeset for help on using the changeset viewer.