[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
Fri Sep 20 05:49:53 UTC 2024


#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:  Awaiting Review
Component:  General                    |    Version:  6.6.2
 Severity:  normal                     |   Keywords:  has-patch
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 When adding a new site in a WordPress Multisite Network (via `/wp-
 admin/network/site-new.php`), the form does not provide a filter to allow
 the addition of custom attributes, such as `enctype="multipart/form-
 data"`, which is necessary for handling file uploads during new site
 creation.

 This issue arises when developers need to extend the new site creation
 form to allow file uploads (e.g., custom site logos or configuration
 files). However, since there is no hook or filter to modify the form
 attributes, it is currently impossible to add the `enctype="multipart
 /form-data"` attribute to the form without overriding core files.

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


More information about the wp-trac mailing list