From 12621e022829a08a068d35482fe5bb34782dbabd Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 3 Jan 2022 22:12:52 +0000 Subject: [PATCH] Login and registration: Rename two filters related to language dropdown for better consistency. This change renames two filters introduced in WP 5.9 development cycle. It replaces `display_login_language_dropdown` with `login_display_language_dropdown` and `wp_login_language_switcher_args` with `login_language_switcher_args`, for better consistency with the other existing `login_*` filters. Props kebbet, mukesh27, audrasjb, Clorith, hellofromTonya. Fixes #54696. git-svn-id: https://develop.svn.wordpress.org/trunk@52432 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-login.php b/src/wp-login.php index aa29cac0d9..05c8b0f04e 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -321,7 +321,7 @@ function login_footer( $input_id = '' ) { * * @param bool Whether to display the Languages select input on the login screen. */ - apply_filters( 'display_login_language_dropdown', true ) + apply_filters( 'login_display_language_dropdown', true ) ) { $languages = get_available_languages(); @@ -352,7 +352,7 @@ function login_footer( $input_id = '' ) { * * @param array $args Arguments for the Languages select input on the login screen. */ - wp_dropdown_languages( apply_filters( 'wp_login_language_switcher_args', $args ) ); + wp_dropdown_languages( apply_filters( 'login_language_switcher_args', $args ) ); ?>