Changeset 11380 for trunk/wp-includes/l10n.php
- Timestamp:
- 05/18/2009 03:11:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/l10n.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r11281 r11380 121 121 122 122 /** 123 * Retrieves the translation of $text and escapes it for safe use in HTML output. 124 * If there is no translation, or the domain isn't loaded the original text is returned. 125 * 126 * @see translate() An alias of translate() 127 * @see esc_html() 128 * @since 2.8.0 129 * 130 * @param string $text Text to translate 131 * @param string $domain Optional. Domain to retrieve the translated text 132 * @return string Translated text 133 */ 134 function esc_html__( $text, $domain = 'default' ) { 135 return esc_html( translate( $text, $domain ) ); 136 } 137 138 /** 123 139 * Displays the returned translated text from translate(). 124 140 * … … 145 161 function esc_attr_e( $text, $domain = 'default' ) { 146 162 echo esc_attr( translate( $text, $domain ) ); 163 } 164 165 /** 166 * Displays translated text that has been escaped for safe use in HTML output. 167 * 168 * @see translate() Echoes returned translate() string 169 * @see esc_html() 170 * @since 2.8.0 171 * 172 * @param string $text Text to translate 173 * @param string $domain Optional. Domain to retrieve the translated text 174 */ 175 function esc_html_e( $text, $domain = 'default' ) { 176 echo esc_html( translate( $text, $domain ) ); 147 177 } 148 178
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)