[wp-trac] [WordPress Trac] #63529: Fatal Error Media Upload MP3 PHP 8.2 when metadata contains list

WordPress Trac noreply at wordpress.org
Thu Jun 5 17:32:10 UTC 2025


#63529: Fatal Error Media Upload MP3 PHP 8.2 when metadata contains list
-------------------------------------------------+-------------------------
 Reporter:  sllimrovert                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.9
Component:  Media                                |     Version:  6.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-test-info needs-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by sllimrovert):

 In my opinion, the choice to flatten arrays into strings for the metadata
 loses the inherent nature of that meta data.  The meta data for "Involved
 People" is a list and should remain a list so that places that might
 choose to use it can work with it as a list.  There are other examples of
 metadata that remain an array - like ''image'' just a little lower in the
 function.

 The kses is run to ensure no troublesome characters or scripts make it
 through.  I think it would be more robust to walk through the array and
 run kses on all values.  I think the `wp_kses_post_deep` might be helpful
 with that.

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


More information about the wp-trac mailing list