[wp-trac] [WordPress Trac] #27048: Export: Allow multiple post types to be selected
WordPress Trac
noreply at wordpress.org
Tue Feb 10 21:47:48 UTC 2015
#27048: Export: Allow multiple post types to be selected
----------------------------------------+-----------------------------
Reporter: hlashbrooke | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Export | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: administration
----------------------------------------+-----------------------------
Comment (by sc0ttkclark):
@hlashbrooke If we're going to use get_posts to get the post IDs out, we
should be using `'fields' => 'ids'` to pull out only the IDs. If we're
going to use get_posts at all, we should consider ripping out some logic
down below to just utilize WP_Query and a ->have_posts() / ->the_post()
loop to consolidate all of the logic and utilize object caching that
WP_Query affords.
As for unit tests, we should indeed have a look at those and figure out
what we need to do to get export_wp / this ticket covered under the tests
again, or at least setup some new tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27048#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list