Changeset 11103 for trunk/wp-includes/formatting.php
- Timestamp:
- 04/27/2009 09:58:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r11098 r11103 2074 2074 * Escaping for HTML attributes. 2075 2075 * 2076 * @since 2. 0.62076 * @since 2.8.0 2077 2077 * 2078 2078 * @param string $text 2079 2079 * @return string 2080 2080 */ 2081 function attr ibute_escape( $text ) {2081 function attr( $text ) { 2082 2082 $safe_text = wp_check_invalid_utf8( $text ); 2083 2083 $safe_text = wp_specialchars( $safe_text, ENT_QUOTES ); 2084 2084 return apply_filters( 'attribute_escape', $safe_text, $text ); 2085 } 2086 2087 /** 2088 * Escaping for HTML attributes. 2089 * 2090 * @since 2.0.6 2091 * 2092 * @deprecated 2.8.0 2093 * @see attr() 2094 * 2095 * @param string $text 2096 * @return string 2097 */ 2098 function attribute_escape( $text ) { 2099 return attr( $text ); 2085 2100 } 2086 2101
Note: See TracChangeset
for help on using the changeset viewer.