From 9027e7c4899e17532c6dec1296b92dd1e9157be0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 Dec 2020 18:24:53 +0000 Subject: [PATCH] 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 --- src/wp-includes/l10n.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php index 72a74ff0ac..b4115e10a3 100644 --- a/src/wp-includes/l10n.php +++ b/src/wp-includes/l10n.php @@ -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 ); }