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
This commit is contained in:
Jb Audras
2022-01-03 22:12:52 +00:00
parent f80d2c6240
commit 12621e0228

View File

@@ -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 ) );
?>
<?php if ( $interim_login ) { ?>