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

WordPress Trac noreply at wordpress.org
Tue Mar 12 13:33:42 UTC 2024


#60741: Remove uneeded upload override settngs in Font Face endpoint
------------------------------------------------+-----------------------
 Reporter:  peterwilsoncc                       |       Owner:  audrasjb
     Type:  defect (bug)                        |      Status:  closed
 Priority:  normal                              |   Milestone:  6.5
Component:  REST API                            |     Version:
 Severity:  normal                              |  Resolution:  fixed
 Keywords:  has-patch fixed-major dev-reviewed  |     Focuses:
------------------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57813" 57813]:
 {{{
 #!CommitTicketReference repository="" revision="57813"
 REST API: Remove unnecessary upload overrides in font face controller.

 This removes settings that are the default value or required for side-
 loading from the
 `WP_REST_Font_Faces_Controller::handle_font_file_upload()`.

 This is to harden the endpoint and future proof against any changes to
 `wp_handle_upload()` and related functions/security checks.

 Reviewed by swissspidy, audrasjb.
 Merges [57804] to the to the 6.5 branch.

 Props peterwilsoncc, dd32.
 Fixes #60741.
 }}}

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


More information about the wp-trac mailing list