WordPress.org

Make WordPress Core

Ticket #22435: export.4.diff

File export.4.diff, 673 bytes (added by rodrigosprimo, 4 years ago)

Use the right name for the author XML node (see https://core.trac.wordpress.org/ticket/22435#comment:49)

  • src/wp-includes/export/class-wp-export-wxr-formatter.php

    diff --git a/src/wp-includes/export/class-wp-export-wxr-formatter.php b/src/wp-includes/export/class-wp-export-wxr-formatter.php
    index 5953b77..073c271 100644
    a b COMMENT; 
    117117                $authors = $this->export->authors();
    118118                foreach ( $authors as $author ) {
    119119                        $oxymel
    120                                 ->tag( 'wp:wp_author' )->contains
     120                                ->tag( 'wp:author' )->contains
    121121                                        ->tag( 'wp:author_login', $author->user_login )
    122122                                        ->tag( 'wp:author_email', $author->user_email )
    123123                                        ->tag( 'wp:author_display_name' )->contains->cdata( $author->display_name )->end