[wp-trac] [WordPress Trac] #22435: Export API

WordPress Trac noreply at wordpress.org
Mon Sep 29 23:59:04 UTC 2014


#22435: Export API
------------------------------------+-----------------------------
 Reporter:  nbachiyski              |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Export                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------------

Comment (by danielbachhuber):

 Nacin and I chatted about this a while back in a private Skype channel.
 Apologies for not posting a summary earlier.

 WP-CLI has been using Nikolay's exporter for 10 months and 3 major
 releases ([https://github.com/wp-cli/wp-cli/pull/525 ref]). From a
 functional perspective, it does the trick — no blocking bugs discovered.
 It solved performance issues when exporting large sites, and offers a
 degree of run-time flexibility. However, from a "WordPress architecture"
 perspective, which will always be hotly debated, it remains an open
 question as to whether the code fits.

 Specifically, this approach includes a new, one-off library for writing
 XML, dubbed `Oxymel`. It uses this new library by chaining, a foreign-to-
 WordPress code pattern. These two considerations, plus the other feedback
 in this thread, mean committing the patch would not be an inconsequential
 decision.

 In our chat, Nacin said "needs to be significantly simplified while still
 maintaining some good level of flexibility and extendability". Given the
 legacy of the exporter (which produces an invented, inconsistent XML
 format), it remains to be seen whether this is possible. Consider it a
 challenge to anyone interested.

 Personally, I'm inclined to revisit the high-level goals of export &
 import. In part because any enhancement to one will need to be an
 enhancement to another, but also because a given enhancement will need to
 be *really good* to overcome the problems inherent in everyone's minor
 differences of opinion. To me, the problem space really is "how can sync
 my two WordPress sites?", either as a one-off, one-way sync, a two-way,
 but manual sync, an automatic sync, etc. etc. If we were to embark on this
 space mission, I'm sure we'd make sure to solve this particular issue's
 high-level goals along the way.

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


More information about the wp-trac mailing list