[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
Wed Jul 2 17:27:08 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: reporter-feedback needs-test-info | Focuses:
needs-refresh | administration
-------------------------------------------------+-------------------------
Comment (by jorbin):
To reproduce I made an mu-plugin with the code from the ticket description
{{{#!php
<?php
add_action( 'export_wp', function() {
add_filter( 'get_comment', '__return_false' );
} );
}}}
I then used wp-cli to run `export_wp()` and observed that it contains an
empty comment.
The [https://github.com/WordPress/wordpress-
develop/pull/8383#pullrequestreview-2979999548 refresh is described on the
PR].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61244#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list