Changeset 11204 for trunk/wp-includes/l10n.php
- Timestamp:
- 05/05/2009 07:43:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/l10n.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r11194 r11204 109 109 * 110 110 * @see translate() An alias of translate() 111 * @see attr()111 * @see esc_attr() 112 112 * @since 2.8.0 113 113 * … … 116 116 * @return string Translated text 117 117 */ 118 function _a( $text, $domain = 'default' ) {119 return attr( translate( $text, $domain ) );118 function esc_attr__( $text, $domain = 'default' ) { 119 return esc_attr( translate( $text, $domain ) ); 120 120 } 121 121 … … 137 137 * 138 138 * @see translate() Echos returned translate() string 139 * @see attr()139 * @see esc_attr() 140 140 * @since 2.8.0 141 141 * … … 143 143 * @param string $domain Optional. Domain to retrieve the translated text 144 144 */ 145 function _ea( $text, $domain = 'default' ) {146 echo attr( translate( $text, $domain ) );145 function esc_attr_e( $text, $domain = 'default' ) { 146 echo esc_attr( translate( $text, $domain ) ); 147 147 } 148 148 … … 174 174 } 175 175 176 function _xa( $single, $context, $domain = 'default' ) {177 return attr( translate_with_gettext_context( $single, $context, $domain ) );176 function esc_attr_x( $single, $context, $domain = 'default' ) { 177 return esc_attr( translate_with_gettext_context( $single, $context, $domain ) ); 178 178 } 179 179
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)