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

WordPress Trac noreply at wordpress.org
Wed Nov 14 08:04:19 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 has-patch  |
------------------------------------+------------------------------

Comment (by scribu):

 Replying to [comment:7 nbachiyski]:
 > > {{{
 > > serve_xml( $file_name ) – outputs the necessary HTTP headers and then
 the export as XML
 > > }}}
 > >
 > > I think this should be split out into a utility function or something.
 It's an operation that you do after the actual export.
 >
 > To me it seems totally equal to the rest of the export methods. How is
 it different?

 Because you need to generate the file before serving it and to serve a XML
 file you don't need any of the information you passed to WP_WXR_Export;
 you could just pass it directly to nginx. That's why it's different.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22435#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list