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

WordPress Trac noreply at wordpress.org
Thu Oct 30 19:43:28 UTC 2025


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

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61098" 61098]:
 {{{
 #!CommitTicketReference repository="" revision="61098"
 Media: Prevent fatal error if metadata is an array.

 Check the data type of ID3 data on import before running `wp_kses_post` or
 `wp_kses_post_deep` to fix a fatal error thrown when attempting to run
 `wp_kses_post` on non-string content in PHP 8.2+.

 Adds unit tests to verify.

 Props sllimrovert, ankitkumarshah, rollybueno, wpfy, hmbashar, SirLouen,
 johnbillion, huzaifaalmesbah, sandeepdahiya, sourabhjain, poojapadamad,
 joedolson.
 Fixes #63529.
 }}}

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


More information about the wp-trac mailing list