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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2009-05-05 19:43:53 +00:00
parent 12924135ce
commit 6c2ffddf31
110 changed files with 703 additions and 703 deletions

View File

@@ -1270,7 +1270,7 @@ function translate_smiley($smiley) {
$smiley = trim(reset($smiley));
$img = $wpsmiliestrans[$smiley];
$smiley_masked = attr($smiley);
$smiley_masked = esc_attr($smiley);
return " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
}
@@ -2078,7 +2078,7 @@ function js_escape($text) {
* @param string $text
* @return string
*/
function attr( $text ) {
function esc_attr( $text ) {
$safe_text = wp_check_invalid_utf8( $text );
$safe_text = wp_specialchars( $safe_text, ENT_QUOTES );
return apply_filters( 'attribute_escape', $safe_text, $text );
@@ -2090,13 +2090,13 @@ function attr( $text ) {
* @since 2.0.6
*
* @deprecated 2.8.0
* @see attr()
* @see esc_attr()
*
* @param string $text
* @return string
*/
function attribute_escape( $text ) {
return attr( $text );
return esc_attr( $text );
}
/**