Docs: Move locale filter documentation to the canonical place.

See #51800.

git-svn-id: https://develop.svn.wordpress.org/trunk@49859 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-12-21 18:24:53 +00:00
parent af5bab23ab
commit 9027e7c489

View File

@@ -31,13 +31,7 @@ function get_locale() {
global $locale, $wp_local_package;
if ( isset( $locale ) ) {
/**
* Filters the locale ID of the WordPress installation.
*
* @since 1.5.0
*
* @param string $locale The locale ID.
*/
/** This filter is documented in wp-includes/l10n.php */
return apply_filters( 'locale', $locale );
}
@@ -76,7 +70,13 @@ function get_locale() {
$locale = 'en_US';
}
/** This filter is documented in wp-includes/l10n.php */
/**
* Filters the locale ID of the WordPress installation.
*
* @since 1.5.0
*
* @param string $locale The locale ID.
*/
return apply_filters( 'locale', $locale );
}