[wp-trac] [WordPress Trac] #27048: Export: Allow multiple post types to be selected

WordPress Trac noreply at wordpress.org
Wed Jan 20 10:37:05 UTC 2016


#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    |     Focuses:  administration
-------------------------+-----------------------------
Changes (by hlashbrooke):

 * keywords:  has-patch needs-unit-tests => has-patch


Comment:

 This has been dormant for a little while, but I think it's worth looking
 at it again as I think this will be a hugely valuable enhancement to core.

 I have refreshed the patch against the current trunk, so it's all up to
 date in 27048.diff.

 To update everyone with where we're at with this patch:

 * '''All export queries are switched from raw MySQL to `WP_Query`'''
 * Post type selection is switched to checkboxes to allow any selection of
 post types to be selected (including attachments and nav menus)
 * #17379 is fixed as featured images are no longer dropped from posts
 * #28146 is also fixed as I have included an `export_wp_post_ids` filter
 in the updated `export_wp()` function

 I have not included unit tests, partly because (rather ashamedly) I have
 not learnt how to write them yet, but also because I have merely modified
 existing functions (most notably `export_wp()` of course), so the existing
 unit tests for the export code will still cover the same ground as this
 patch leaving little need for brand new tests.

 I would really like to see this land in core as it will solve a rather
 large usability issue with the exporter, in that you have to do multiple
 exports to get a specific set of post types (not to mention then featured
 image dropping bug that is also fixed in here).

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


More information about the wp-trac mailing list