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

WordPress Trac noreply at wordpress.org
Thu Dec 18 12:52:35 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 dllh):

 I noticed just recently that we're exporting the author info with
 incorrect xml. The importer step that creates author mappings expects an
 XML node named `<wp:author>` ([https://plugins.trac.wordpress.org/browser
 /wordpress-importer/trunk/parsers.php#L101 citation]) but we're creating
 `<wp:wp_author>`. This is easily corrected by updating the `authors()`
 function in `wp-includes/export/class-wp-export-wxr-formatter.php` to
 output `$oxymel->tag( 'wp:author' )->contains` rather than `$oxymel->tag(
 'wp:wp_author' )->contains`.

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


More information about the wp-trac mailing list