[wp-trac] [WordPress Trac] #60741: Remove uneeded upload override settngs in Font Face endpoint

WordPress Trac noreply at wordpress.org
Mon Mar 11 03:30:30 UTC 2024


#60741: Remove uneeded upload override settngs in Font Face endpoint
---------------------------+--------------------
 Reporter:  peterwilsoncc  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  6.5
Component:  REST API       |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+--------------------
 Initially the `WP_REST_Font_Faces_Controller::handle_font_file_upload()`
 method was designed to allow both the uploading of font files and
 requesting the server download them by passing a URL (such as Google
 Fonts)

 This was subsequently changed to allow the upload of files only so some of
 the `wp_handle_upload()` override settings can now be restored to the
 default values.

 This is required for hardening the endpoint so I've placed it on the 6.5
 milestone.

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


More information about the wp-trac mailing list