[wp-trac] [WordPress Trac] #64347: Fatal error when `wxr_cdata()` is called with non-string value

WordPress Trac noreply at wordpress.org
Fri Dec 5 05:27:45 UTC 2025


#64347: Fatal error when `wxr_cdata()` is called with non-string value
--------------------------+---------------------
 Reporter:  desrosj       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.9.1
Component:  Export        |     Version:  6.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by hbhalodia):

 Replying to [comment:5 desrosj]:
 > Thanks for the pull request, @hbhalodia!
 >
 > Before we decide which specific solution is best, I think there are a
 few things we should do.
 >
 > First, we should look into how were `NULL` or other non-string values
 exported in WordPress 6.8? Are they preserved? Converted to a string?
 Something else?
 >
 > We should also write some unit tests that tests `NULL`/non-string values
 in different areas to demonstrate this failure. Doing so will help with
 the first item (the same test assertions should all pass in 6.8 confirming
 the previous behavior), and will help to narrow down which scenarios
 encounter this fatal error, and which ones are properly guarding against
 incorrect types already.
 >
 > @hbhalodia are you able to help with either of these?


 Sure, I will work on this and would provide an update soon.

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


More information about the wp-trac mailing list