Make WordPress Core

Opened 21 months ago

Last modified 13 days ago

#54012 new defect (bug)

Multisite: SIte Title is not checked even if it shows that it is required

Reported by: alucard001's profile alucard001 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8
Component: Networks and Sites Keywords: has-patch
Focuses: administration Cc:


In http://localhost/wp-admin/network/site-new.php, if we input everything except Site Title, which shows it is required, the process of adding is still going well.

It is because in wp_prepare_site_data() function, the $allowed_data_fields did not contain field "title". You will see that in wp_normalize_site_data(), it contains "title", but later in wp_validate_site_data action, $data did not contain "title", and there is actually no checking on this field.

Please add this title validation back to the process.

Thank you

Change History (2)

#1 @sabernhardt
21 months ago

  • Component changed from Administration to Networks and Sites
  • Focuses administration added

This ticket was mentioned in PR #4477 on WordPress/wordpress-develop by @ideag.

13 days ago

  • Keywords has-patch added

#54012 adds backend validation for a field that is marked as required in the UI (Site Title in Add New Site screen)

Trac ticket:

Note: See TracTickets for help on using tickets.