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

WordPress Trac noreply at wordpress.org
Wed Dec 17 23:40:01 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 needs-unit-tests  |     Focuses:
----------------------------------------+---------------------

Comment (by westonruter):

 If we want to preserve an array showing up as "Array" in the export (with
 a warning) then just casting to a string would be the most consistent with
 the previous behavior:

 {{{#!php
 <?php
 $str = (string) $str;
 }}}

 In practice, however, I don't believe any non-scalar values are processed
 during an export.

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


More information about the wp-trac mailing list