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

Props dimadin.
Fixes #36537.
Built from https://develop.svn.wordpress.org/trunk@37214


git-svn-id: http://core.svn.wordpress.org/trunk@37180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-04-15 17:19:28 +00:00
parent 994bfb5b26
commit 7c2ad56158
2 changed files with 5 additions and 5 deletions

View File

@ -519,11 +519,11 @@ function load_textdomain( $domain, $mofile ) {
global $l10n; 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 * @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 $domain Text domain. Unique identifier for retrieving translated strings.
* @param string $mofile Path to the MO file. * @param string $mofile Path to the MO file.
*/ */
@ -580,11 +580,11 @@ function unload_textdomain( $domain ) {
global $l10n; global $l10n;
/** /**
* Filter the text domain for loading translation. * Filter whether to override the text domain unloading.
* *
* @since 3.0.0 * @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. * @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/ */
$plugin_override = apply_filters( 'override_unload_textdomain', false, $domain ); $plugin_override = apply_filters( 'override_unload_textdomain', false, $domain );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.6-alpha-37213'; $wp_version = '4.6-alpha-37214';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.