WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#36340 new defect (bug)

Other options ignored when using a custom post type with export_wp()

Reported by: theMikeD Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Export Keywords:
Focuses: Cc:

Description (last modified by DrewAPicture)

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?

Change History (2)

#1 @DrewAPicture
2 years ago

  • Description modified (diff)
  • Summary changed from Other options ignored when using a custom post type with wp_export to Other options ignored when using a custom post type with export_wp()

#2 @chriscct7
2 years ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.