Changeset 11204 for trunk/wp-includes/formatting.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r11178 r11204 1271 1271 $smiley = trim(reset($smiley)); 1272 1272 $img = $wpsmiliestrans[$smiley]; 1273 $smiley_masked = attr($smiley);1273 $smiley_masked = esc_attr($smiley); 1274 1274 1275 1275 return " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> "; … … 2079 2079 * @return string 2080 2080 */ 2081 function attr( $text ) {2081 function esc_attr( $text ) { 2082 2082 $safe_text = wp_check_invalid_utf8( $text ); 2083 2083 $safe_text = wp_specialchars( $safe_text, ENT_QUOTES ); … … 2091 2091 * 2092 2092 * @deprecated 2.8.0 2093 * @see attr()2093 * @see esc_attr() 2094 2094 * 2095 2095 * @param string $text … … 2097 2097 */ 2098 2098 function attribute_escape( $text ) { 2099 return attr( $text );2099 return esc_attr( $text ); 2100 2100 } 2101 2101
Note: See TracChangeset
for help on using the changeset viewer.