From b0ed40cb3b51c11ae145aec0192e26cc90f05551 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 15 Apr 2016 17:18:41 +0000 Subject: [PATCH] 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 --- src/wp-includes/l10n.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php index bfc659897e..4bfb9891f0 100644 --- a/src/wp-includes/l10n.php +++ b/src/wp-includes/l10n.php @@ -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 );