[wp-trac] [WordPress Trac] #22435: Export API
WordPress Trac
noreply at wordpress.org
Tue Nov 13 18:29:59 UTC 2012
#22435: Export API
--------------------------+------------------------------
Reporter: nbachiyski | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Export | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Comment (by nbachiyski):
Last, but not least, some implementation :-)
Notes:
* It's not 100% complete, some of the post XML generation and data
retrieval is missing. It's tedious and I left it for later :-)
* I'm not at all happy with the XML generator. The here-doc approach
didn't turn out very good. I have two ideas for it: to use output
buffering and native PHP templates or to use/build a generic XML
generator.
* I had to use exceptions in a couple of places. I know they are not the
WordPress thing, but otherwise they are practically unavoidable. For
example, if the writer issues a error and I need to catch it in the export
class, I would need to have probably a hundred {{{if ( is_wp_error()}}}
checks on every single call for virtually anything.
* I haven't looked into having minimal export when splitting, so I am
just repeating everything before the posts in each export file.
* It'd be nice to have a {{{_gmt}}} time filter.
* In addittion to the patches, you can follow the development here:
https://github.com/nb/WordPress/tree/export-api
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22435#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list