Permalink
Commits on Oct 25, 2013
  1. Don't output anything before successful export

    nb committed Oct 25, 2013
    Currently when exporting over HTTP, if an error occurs mid-way we will
    halt export, after we already had output some headers and part of the
    export.
    
    This makes for a louse user experience, so here we accumulate the export
    and only output it if nothing stopped the execution.
    
    Props @dllh: http://core.trac.wordpress.org/ticket/22435#comment:33
  2. Initialize the correct variable

    nb committed Oct 25, 2013
  3. Use correct writer arg value

    nb committed Mar 5, 2013
  4. Solidify operator precendence

    nb committed Mar 5, 2013
  5. Use the end of a month for end date

    nb committed Feb 19, 2013
  6. Don't use the Oxymel symlink

    nb committed Feb 19, 2013
  7. Use Oxymel for generating XML

    nb committed Feb 19, 2013
  8. We don't need terms' descriptions

    nb committed Feb 19, 2013
  9. Gather post information on the export query

    nb committed Feb 10, 2013
    Move the responsibility from the formatter to
    the query, so that all formatters can get the same
    information.
  10. Rename XML generators to formatters

    nb committed Jan 30, 2013
  11. Assume the extra writers argument is single value

    nb committed Jan 30, 2013
    If we have more than one, we'd better move them to
    an associative array.
  12. Remove more WXR references

    nb committed Nov 14, 2012
  13. Move out the export methods from WP_Export_Query

    nb committed Nov 14, 2012
    They don't belong there, because they cut through
    many concerns.
    
    We have them now all in a wp_export() function in
    its own file.
  14. Rename WP_WXR_Export to WP_Export_Query

    nb committed Nov 14, 2012
    The class is responsible only for querying the right
    data and not about WXR at all.
  15. Rename to export_xml_using_writer_class()

    nb committed Nov 13, 2012
    The result is always coupled with the XML generator,
    so we'd better be honest in our naming.
  16. Make the writer abstract again

    nb committed Nov 13, 2012
    We want every sub-class to write its own write()
    implementation, the echo here is rather arbitrary.
  17. We don't need to have a list of the parts

    nb committed Nov 13, 2012
    We were using them only for tests and since we
    now have before_posts() and after_posts() it's
    much easier on the tests side.
  18. Simplify writers

    nb committed Nov 12, 2012
    Introduce before_posts() and after_posts() methods
    in the XML generator, so that if they don't want
    to get very granular, the writers can use them.
    
    This made the writers code (especially that of
    the split files writers) much simpler.
  19. Introduce serve_xml() and its writer

    nb committed Nov 12, 2012
  20. Glue posts handling

    nb committed Nov 12, 2012
    The export returns a map iterator with exportify_post()
    which adds some useful post fields.
    
    Then the XML generator takes it and returns another
    map generator, which generates XML out of the post
    object.
    
    Now when the writer loops over the posts it has no
    idea what happens behind the scenes. It looks as if
    it got just an array of strings with XML in them.
  21. Move WXR_VERSION out of wp-admin

    nb committed Nov 12, 2012
  22. Add WP_Map_Iterator

    nb committed Nov 12, 2012
    Accepts a callback and maps all the values using it.
  23. Rename class-wp-post-iterator.php to iterators.php

    nb committed Nov 12, 2012
    The new name is more generic and allows us to
    use the same file for more iterators.
  24. Add Post IDs iterator

    nb committed Nov 12, 2012
    It allows to query a lot of posts by chunks given
    their post IDs.