Changeset 11426 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
- Timestamp:
- 01/11/2022 12:50:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r11409 r11426 56 56 * Disable the Core Language Selector on wp-login.php. 57 57 */ 58 function wporg_login_disable_lang_switcher() { 59 add_filter( 'login_display_language_dropdown', '__return_false' ); 60 } 61 add_action( 'login_init', 'wporg_login_disable_lang_switcher' ); 58 add_filter( 'login_display_language_dropdown', '__return_false' ); 59 60 /** 61 * Disable XML-RPC endpoints. 62 */ 63 add_filter( 'xmlrpc_methods', '__return_empty_array' ); 62 64 63 65 /**
Note: See TracChangeset
for help on using the changeset viewer.