Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#49432 new defect (bug)

Need of maximum character limit for Site Title

Reported by: sharduld's profile sharduld Owned by:
Milestone: Awaiting Review Priority: low
Severity: minor Version:
Component: Options, Meta APIs Keywords: needs-patch close
Focuses: ui, administration Cc:

Description

  1. There should be a maximum limit of characters for setting up the site title in Admin Dashboard -> Settings -> General. The limit should also be there at time of site setup.
  2. Currently, the site title has no limit of characters. This may break the site UI on the frontend.
  3. Site title allows to add spaces only, but gets saved as empty.

Change History (5)

#1 @valentinbora
5 years ago

  • Focuses ui added
  • Keywords good-first-bug added
  • Milestone changed from Awaiting Review to 5.5
  • Priority changed from normal to low

Thanks for the ticket @sharduld and welcome to WordPress Trac. I'll prioritize this accordingly.

#2 @SergeyBiryukov
5 years ago

Hi there, welcome to WordPress Trac! Thanks for the ticket.

Previously: [34455] / #33973.

As noted in comment:2:ticket:33973, site title is stored in a column with a size of LONGTEXT, so there doesn't appear to be a need for the restriction at least from a storage standpoint.

Since each theme may present the title differently, it's also not quite clear what the suggested limit should be, and whether it should be in core in the first place.

If a theme breaks the site UI on the front end because of a site title of a particular width, it seems this should be addressed in the theme.

Last edited 5 years ago by SergeyBiryukov (previous) (diff)

#3 @johnbillion
5 years ago

  • Component changed from Administration to Options, Meta APIs
  • Milestone changed from 5.5 to Awaiting Review
  • Version 5.3.2 deleted

#4 @desrosj
5 years ago

  • Keywords close added; good-first-bug removed

I agree with @SergeyBiryukov that we probably should not limit the length of site titles.

I am going to mark this as a candidate to close as a wontfix, but leaving it open to allow a period of time for feedback from more contributors.

#5 @Presskopp
3 years ago

FYI: from some point on with a very long title trying to edit the title it gets unresponsive and uneditable..

Note: See TracTickets for help on using tickets.