Make WordPress Core

Opened 7 weeks ago

Last modified 4 weeks ago

#61367 new enhancement

Long Site Titles Cause Layout Issues on wp-admin Login Page

Reported by: parinpanjari's profile parinpanjari Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.5.3
Component: Login and Registration Keywords: has-patch close 2nd-opinion
Focuses: ui, administration Cc:

Description

When the site title is excessively long (e.g., 5000 characters), it causes the wp-admin login page to display with a long scroll, making the page layout unfriendly and difficult to navigate. This issue can be resolved by truncating the site title to a manageable length for display purposes.

Steps to Reproduce:

  1. Set a very long site title (around 5000 characters) in the WordPress settings.
  2. Visit the wp-admin login page.

Recording Video : https://www.loom.com/share/2dd164d12c854f3d895dfad88e025a8b?sid=2a99d7bd-d47c-409e-8047-80054786502b

Wordpress Version: 6.5.3

Attachments (1)

wp-login.php (49.9 KB) - added by parinpanjari 7 weeks ago.

Download all attachments as: .zip

Change History (2)

@parinpanjari
7 weeks ago

#1 @sabernhardt
7 weeks ago

  • Component changed from Administration to Login and Registration
  • Focuses accessibility removed
  • Keywords close 2nd-opinion added
  • Type changed from defect (bug) to enhancement

Hi and welcome to WordPress Core Trac!

#52776 already made long links wrap to the next line (and [52174] edited the property name).

The admin toolbar uses wp_html_excerpt to truncate the site title, but I do not recommend truncating it in the login page's backtoblog link. Whether the text would be cut by an arbitrary number of characters or by word count, the end of that string would make less sense than the link currently does with the full title.

Last edited 4 weeks ago by sabernhardt (previous) (diff)
Note: See TracTickets for help on using tickets.