Make WordPress Core

Ticket #29621: 29621.diff

File 29621.diff, 977 bytes (added by GaryJ, 10 years ago)

Change exporter from the_title_rss filter to the_title_export

  • src/wp-admin/includes/export.php

    diff --git src/wp-admin/includes/export.php src/wp-admin/includes/export.php
    index 397e9e7..bc1cae0 100644
    function export_wp( $args = array() ) { 
    391391                $is_sticky = is_sticky( $post->ID ) ? 1 : 0;
    392392?>
    393393        <item>
    394                 <?php /** This filter is documented in wp-includes/feed.php */ ?>
    395                 <title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title>
     394                <title><?php
     395                        /**
     396                         * Filter the post title used for WXR exports.
     397                         *
     398                         * @since 4.1.0
     399                         *
     400                         * @param string $post_title Title of the current post.
     401                         */
     402                        echo wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) );
     403                ?></title>
    396404                <link><?php the_permalink_rss() ?></link>
    397405                <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
    398406                <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator>