[wp-trac] [WordPress Trac] #63281: Password field has wrongly focus on installations
WordPress Trac
noreply at wordpress.org
Tue Apr 15 12:10:45 UTC 2025
#63281: Password field has wrongly focus on installations
-----------------------------+--------------------------------------------
Reporter: zodiac1978 | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: ui, accessibility, javascript
-----------------------------+--------------------------------------------
Comment (by abcd95):
I tried this, and it works like a charm -
{{{
diff --git a/src/js/_enqueues/admin/user-profile.js
b/src/js/_enqueues/admin/user-profile.js
index 2aebe62a91..36d61fee1a 100644
--- a/src/js/_enqueues/admin/user-profile.js
+++ b/src/js/_enqueues/admin/user-profile.js
@@ -57,7 +57,7 @@
$( '#pw-weak-text-label' ).text( __( 'Confirm use of weak
password' ) );
// Focus the password field.
- if ( 'mailserver_pass' !== $pass1.prop('id' ) ) {
+ if ( 'mailserver_pass' !== $pass1.prop('id' ) &&
!$('#weblog_title').length ) {
$( $pass1 ).trigger( 'focus' );
}
}
}}}
Let me know if this tests well :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63281#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list