Opened 2 years ago
Closed 2 years ago
#60741 closed defect (bug) (fixed)
Remove uneeded upload override settngs in Font Face endpoint
| Reported by: | peterwilsoncc | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.5 |
| Component: | REST API | Version: | |
| Severity: | normal | Keywords: | has-patch fixed-major dev-reviewed |
| Cc: | Focuses: |
Description
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.
Change History (8)
This ticket was mentioned in PR #6242 on WordPress/wordpress-develop by @peterwilsoncc.
2 years ago
#1
- Keywords has-patch added
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Remove unneeded overrides in the font face controllers upload settings.
https://core.trac.wordpress.org/ticket/60741