WordPress.org

Make WordPress Core

Changeset 52432


Ignore:
Timestamp:
01/03/2022 10:12:52 PM (3 weeks ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r52417 r52432  
    322322         * @param bool Whether to display the Languages select input on the login screen.
    323323         */
    324         apply_filters( 'display_login_language_dropdown', true )
     324        apply_filters( 'login_display_language_dropdown', true )
    325325    ) {
    326326        $languages = get_available_languages();
     
    353353                     * @param array $args Arguments for the Languages select input on the login screen.
    354354                     */
    355                     wp_dropdown_languages( apply_filters( 'wp_login_language_switcher_args', $args ) );
     355                    wp_dropdown_languages( apply_filters( 'login_language_switcher_args', $args ) );
    356356                    ?>
    357357
Note: See TracChangeset for help on using the changeset viewer.