From fb4fcb43886f95bfbd88a5205a2687bba7cddb1b Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 27 May 2024 14:11:12 +0000 Subject: [PATCH] Login and Registration: Ensure login header title is translatable. This changeset ensures the login header default title string is translatable in `login_header()`. Props juliobox, swissspidy, audrasjb. Fixes #60668. Built from https://develop.svn.wordpress.org/trunk@58209 git-svn-id: http://core.svn.wordpress.org/trunk@57672 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 5c0af1d98b..fefe6701f4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58208'; +$wp_version = '6.6-alpha-58209'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 18811aae57..21e000dc40 100644 --- a/wp-login.php +++ b/wp-login.php @@ -34,13 +34,17 @@ if ( force_ssl_admin() && ! is_ssl() ) { * @global string $action The action that brought the visitor to the login page. * * @param string $title Optional. WordPress login Page title to display in the `` element. - * Default 'Log In'. + * Default null, which displays 'Log In'. * @param string $message Optional. Message to display in header. Default empty. * @param WP_Error $wp_error Optional. The error to pass. Default is a WP_Error instance. */ -function login_header( $title = 'Log In', $message = '', $wp_error = null ) { +function login_header( $title = null, $message = '', $wp_error = null ) { global $error, $interim_login, $action; + if ( null === $title ) { + $title = __( 'Log In' ); + } + // Don't index any of these forms. add_filter( 'wp_robots', 'wp_robots_sensitive_page' ); add_action( 'login_head', 'wp_strict_cross_origin_referrer' );