Changeset 44830 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 03/11/2019 08:31:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r44514 r44830 1233 1233 * 1234 1234 * @since 2.8.0 1235 * 1236 * @param string $name The role name. 1235 * @since 5.2.0 Added the `$domain` parameter. 1236 * 1237 * @param string $name The role name. 1238 * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings. 1239 * Default 'default'. 1237 1240 * @return string Translated role name on success, original name on failure. 1238 1241 */ 1239 function translate_user_role( $name ) {1240 return translate_with_gettext_context( before_last_bar( $name ), 'User role' );1242 function translate_user_role( $name, $domain = 'default' ) { 1243 return translate_with_gettext_context( before_last_bar( $name ), 'User role', $domain ); 1241 1244 } 1242 1245
Note: See TracChangeset
for help on using the changeset viewer.