[wp-trac] [WordPress Trac] #36339: Possible issue with export_wp() and undefined custom post types
WordPress Trac
noreply at wordpress.org
Sun Jun 12 10:17:15 UTC 2016
#36339: Possible issue with export_wp() and undefined custom post types
--------------------------------------------+------------------------------
Reporter: theMikeD | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Export | Version:
Severity: normal | Resolution:
Keywords: dev-feedback needs-screenshots | Focuses:
--------------------------------------------+------------------------------
Changes (by screamingdev):
* keywords: => dev-feedback needs-screenshots
Comment:
It might be solved as described below.
Maybe a core committer can review the described way, so that I don't do
all the work for nothing ;)
I'll write a UnitTest next week covering these scenarios:
- If a valid post type is supplied but its can_export property is false,
no entry of this post type should be exported.
- If an invalid post type is supplied then an error message should occur
instead of doing the regular post type.
After that a mock of the error message is needed here to show what the
error message will look like.
Later on I try solving this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36339#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list