Docs: Move locale filter documentation to the canonical place.

See #51800.
Built from https://develop.svn.wordpress.org/trunk@49859


git-svn-id: http://core.svn.wordpress.org/trunk@49578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-12-21 18:27:04 +00:00
parent 5550b5fd6a
commit 1d3fd41977
2 changed files with 9 additions and 9 deletions

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 );
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49858';
$wp_version = '5.7-alpha-49859';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.