mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@52432 git-svn-id: http://core.svn.wordpress.org/trunk@52024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65ebdf45d8
commit
4f16b910f3
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-beta4-52431';
|
||||
$wp_version = '5.9-beta4-52432';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -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 ) { ?>
|
||||
|
Loading…
Reference in New Issue
Block a user