diff --git a/wp-includes/class-wp-locale-switcher.php b/wp-includes/class-wp-locale-switcher.php index 424561a21a..a99433e38d 100644 --- a/wp-includes/class-wp-locale-switcher.php +++ b/wp-includes/class-wp-locale-switcher.php @@ -92,8 +92,8 @@ class WP_Locale_Switcher { * @since 4.7.0 * @since 6.2.0 The `$user_id` parameter was added. * - * @param string $locale The new locale. - * @param null|int $user_id User ID for context if available. + * @param string $locale The new locale. + * @param false|int $user_id User ID for context if available. */ do_action( 'switch_locale', $locale, $user_id ); @@ -186,7 +186,7 @@ class WP_Locale_Switcher { * * @return string|false Locale if the locale has been switched, false otherwise. */ - public function get_current_locale() { + public function get_switched_locale() { $entry = end( $this->stack ); if ( $entry ) { @@ -203,7 +203,7 @@ class WP_Locale_Switcher { * * @return int|false User ID if set and if the locale has been switched, false otherwise. */ - public function get_current_user_id() { + public function get_switched_user_id() { $entry = end( $this->stack ); if ( $entry ) { @@ -222,7 +222,7 @@ class WP_Locale_Switcher { * @return string The locale currently being switched to. */ public function filter_locale( $locale ) { - $switched_locale = $this->get_current_locale(); + $switched_locale = $this->get_switched_locale(); if ( $switched_locale ) { return $switched_locale; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0a32702033..16a6d6c92a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55223'; +$wp_version = '6.2-alpha-55224'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.