[wp-trac] [WordPress Trac] #54675: Add a filter to disable the login screen language dropdown
WordPress Trac
noreply at wordpress.org
Tue Dec 21 17:00:07 UTC 2021
#54675: Add a filter to disable the login screen language dropdown
--------------------------------------+---------------------
Reporter: audrasjb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Login and Registration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note | Focuses:
--------------------------------------+---------------------
Comment (by costdev):
== Test Report
=== Env
* WordPress: trunk (with [https://github.com/WordPress/wordpress-
develop/pull/2074 PR 2074] applied)
* Browser: Chrome v96.0.4664.110
* OS: Windows 10 (WSL2)
* Theme: Twenty Twenty-Two
* Block Editor
* Plugin: None activated
=== Steps to test
1. Load `/wp-login.php`.
2. The languages dropdown should be visible.
3. Add the following to Twenty Twenty-Two's `functions.php` file and Save:
{{{#!php
add_filter( 'display_login_language_dropdown', '__return_false' );
}}}
4. Refresh `/wp-login.php`.
5. The languages dropdown should no longer be visible.
=== Results
- Before adding the filter, the languages dropdown was visible.
- After adding the filter, the languages dropdown was no longer visible.
- All works as expected. 👍
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54675#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list