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

WordPress Trac noreply at wordpress.org
Mon Mar 11 23:14:41 UTC 2024


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

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57804" 57804]:
 {{{
 #!CommitTicketReference repository="" revision="57804"
 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.

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

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


More information about the wp-trac mailing list