[wp-trac] [WordPress Trac] #36340: Other options ignored when using a custom post type with export_wp() (was: Other options ignored when using a custom post type with wp_export)

WordPress Trac noreply at wordpress.org
Fri Mar 25 23:12:36 UTC 2016


#36340: Other options ignored when using a custom post type with export_wp()
--------------------------+------------------------------
 Reporter:  theMikeD      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Export        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by DrewAPicture:

Old description:

> While writing the improved docblock for wp_export, I noticed something
> that may be an issue when a custom post type is supplied.
>
> For the built-in post types you can filter the exported content by start
> date, end date and/or author. But not with a custom post type: with them
> it's everything. Is this by design?
>
> The fix could be to modify line 113 to include the custom post type
> option because by that point we know that it's both valid and
> `can_export` is true thanks to the stuff starting on line 88.
>
> I don't use this code myself but it did jump out at me. Thoughts?

New description:

 While writing the improved docblock for `export_wp()`, I noticed something
 that may be an issue when a custom post type is supplied.

 For the built-in post types you can filter the exported content by start
 date, end date and/or author. But not with a custom post type: with them
 it's everything. Is this by design?

 The fix could be to modify line 113 to include the custom post type option
 because by that point we know that it's both valid and `can_export` is
 true thanks to the stuff starting on line 88.

 I don't use this code myself but it did jump out at me. Thoughts?

--

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


More information about the wp-trac mailing list