[wp-trac] [WordPress Trac] #61244: The export_wp() function inserts empty <wp:comment> data when get_comment() returns a false or empty value

WordPress Trac noreply at wordpress.org
Thu Nov 6 07:49:27 UTC 2025


#61244: The export_wp() function inserts empty <wp:comment> data when get_comment()
returns a false or empty value
-------------------------------------------------+-------------------------
 Reporter:  WPExplorer                           |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.9
Component:  Export                               |     Version:  4.4
 Severity:  minor                                |  Resolution:
 Keywords:  has-test-info has-patch needs-       |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------

Comment (by mabfahad):

 I tested this with the latest WordPress version (6.8.3) on a fresh
 installation.
 I created several posts with comments and also deleted some comments
 directly from the database to simulate missing data.

 In all my tests, get_comment() did not return false, and no empty
 <wp:comment> elements were found in the exported WXR file.

 It appears that this issue no longer occurs in the current version of
 WordPress.

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


More information about the wp-trac mailing list