[wp-trac] [WordPress Trac] #17379: Filtered exports drop attachments and featured images
WordPress Trac
noreply at wordpress.org
Wed Jan 17 00:55:53 UTC 2024
#17379: Filtered exports drop attachments and featured images
-------------------------------------------------+-------------------------
Reporter: billseymour | Owner:
| hellofromTonya
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.5
Component: Export | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info needs-testing |
-------------------------------------------------+-------------------------
Comment (by petitphp):
== Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-
develop/pull/5720.diff
Testing instructions:
[https://core.trac.wordpress.org/ticket/17379#comment:33 comment:33]
=== Environment
- OS: macOS 13.6.1
- Web Server: Nginx
- PHP: 7.4.33
- WordPress: WordPress 6.5-alpha-56966-src
- Browser: Firefox 122b9
- Theme: Twenty Twenty-Four
- Active Plugins:
- WordPress Importer 0.8.2
=== Actual Results
- ✅ With the patch, exporting posts for a specific author also include
all the children attachments of the posts and all the attachments used as
thumbnails.
- ✅ Importing the XML file with the `Download and import file
attachments` option checked did correctly create the expected posts with
their medias/thumbnail.
=== Additional Notes
- While testing the patch, it appears that the new queries used to find
related attachments would also run when exporting "Media" where it is not
useful. I don't think it's a blocker for the current patch to be
committed. I've added a comment in the PR to discuss a small change to
avoid those extra queries in this special case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17379#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list