diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php index 4a6062a4f1..60859419a5 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php @@ -55,10 +55,12 @@ function wporg_login_init() { /** * Disable the Core Language Selector on wp-login.php. */ -function wporg_login_disable_lang_switcher() { - add_filter( 'login_display_language_dropdown', '__return_false' ); -} -add_action( 'login_init', 'wporg_login_disable_lang_switcher' ); +add_filter( 'login_display_language_dropdown', '__return_false' ); + +/** + * Disable XML-RPC endpoints. + */ +add_filter( 'xmlrpc_methods', '__return_empty_array' ); /** * Replace cores login CSS with our own.