[wp-trac] [WordPress Trac] #60835: Fix and improve handling of uploading of font files

WordPress Trac noreply at wordpress.org
Sun Mar 24 23:12:23 UTC 2024


#60835: Fix and improve handling of uploading of font files
--------------------------+---------------------
 Reporter:  azaozz        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.6
Component:  Upload        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by azaozz):

 Replying to [comment:3 peterwilsoncc]:
 > any changes must retain protections against an infinite loop without the
 need for closures to avoid the risks of future maintainers and extenders
 introducing bugs

 Yes, definitely. Seems that the nested filters can be avoided if
 `wp_handle_upload()` and/or `wp_get_upload_dir()` are updated/modified.
 That would completely remove the possibility for an infinite loop caused
 by using these filters.

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


More information about the wp-trac mailing list