Docs: Correct description for `override_load_textdomain` and `override_unload_textdomain` filters.

Props dimadin.
Fixes #36537.

git-svn-id: https://develop.svn.wordpress.org/trunk@37214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-04-15 17:18:41 +00:00
parent 29325967e1
commit b0ed40cb3b
1 changed files with 4 additions and 4 deletions

View File

@ -519,11 +519,11 @@ function load_textdomain( $domain, $mofile ) {
global $l10n;
/**
* Filter text domain and/or MO file path for loading translations.
* Filter whether to override the .mo file loading.
*
* @since 2.9.0
*
* @param bool $override Whether to override the text domain. Default false.
* @param bool $override Whether to override the .mo file loading. Default false.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @param string $mofile Path to the MO file.
*/
@ -580,11 +580,11 @@ function unload_textdomain( $domain ) {
global $l10n;
/**
* Filter the text domain for loading translation.
* Filter whether to override the text domain unloading.
*
* @since 3.0.0
*
* @param bool $override Whether to override unloading the text domain. Default false.
* @param bool $override Whether to override the text domain unloading. Default false.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/
$plugin_override = apply_filters( 'override_unload_textdomain', false, $domain );