mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user