[wp-trac] [WordPress Trac] #62086: Add Filter for Custom Form Attributes in New Site Creation (/wp-admin/network/site-new.php)

WordPress Trac noreply at wordpress.org
Tue Mar 25 17:47:40 UTC 2025


#62086: Add Filter for Custom Form Attributes in New Site Creation (/wp-
admin/network/site-new.php)
--------------------------------+----------------------------------------
 Reporter:  sakibmoon           |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  6.9
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  administration, multisite
--------------------------------+----------------------------------------

Comment (by johnjamesjacoby):

 What if we just add `enctype="multipart/form-data"` to the form? 🧐

 What I don't like about putting a filter in there is that it would be
 unique. No other form attributes have filters like that, and I introducing
 a new pattern that could be used on many forms in WordPress Admin would
 require a bunch of scrutiny.

 What I like about adding it directly, is it:
 * doesn't change any behavior if there are no attachments
 * allows for plugins to do what is being proposed
 * adds a commonly used attribute that

 What I don't like about adding it directly, is:
 * it's potentially confusing that the core form doesn't actually need it
 (maybe we add an inline doc?)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62086#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list