WordPress.org

Make WordPress Core

Opened 8 months ago

Last modified 8 months ago

#49432 new defect (bug)

Need of maximum character limit for Site Title

Reported by: 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 (4)

#1 @valentinbora
8 months 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
8 months 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 8 months ago by SergeyBiryukov (previous) (diff)

#3 @johnbillion
8 months ago

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

#4 @desrosj
8 months 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.

Note: See TracTickets for help on using tickets.