[wp-trac] [WordPress Trac] #60652: font_dir filter enters an infinite loop if wp_get_upload_dir() is used in the filter callback

WordPress Trac noreply at wordpress.org
Thu Mar 28 20:45:35 UTC 2024


#60652: font_dir filter enters an infinite loop if wp_get_upload_dir() is used in
the filter callback
----------------------------------------+----------------------------
 Reporter:  mmaattiiaass                |       Owner:  peterwilsoncc
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  6.5
Component:  General                     |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-unit-tests needs-patch  |     Focuses:
----------------------------------------+----------------------------
Changes (by azaozz):

 * keywords:  has-unit-tests needs-patch dev-reviewed fixed-major => has-
     unit-tests needs-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 As mentioned above the docblock for the new _wp_filter_font_directory()
 function seems wrong. This is a private function not intended for use by
 plugins and themes, and as far as I see it is pretty likely it will be
 deprecated and will stop working in WP 6.6.

 Patch coming up.

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


More information about the wp-trac mailing list