Docs: Split the DocBlock summary for `__()` into a summary and description.
Also, notate the default value for the optional `$domain` parameter. See #32246. Built from https://develop.svn.wordpress.org/trunk@34482 git-svn-id: http://core.svn.wordpress.org/trunk@34446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
90f61eff52
commit
f64c19aa95
|
@ -152,13 +152,15 @@ function translate_with_gettext_context( $text, $context, $domain = 'default' )
|
|||
}
|
||||
|
||||
/**
|
||||
* Retrieve the translation of $text. If there is no translation,
|
||||
* or the text domain isn't loaded, the original text is returned.
|
||||
* Retrieve the translation of $text.
|
||||
*
|
||||
* If there is no translation, or the text domain isn't loaded, the original text is returned.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param string $text Text to translate.
|
||||
* @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
|
||||
* Default 'default'.
|
||||
* @return string Translated text.
|
||||
*/
|
||||
function __( $text, $domain = 'default' ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34481';
|
||||
$wp_version = '4.4-alpha-34482';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue