Make WordPress Core

Ticket #52250: 52250.1.diff

File 52250.1.diff, 769 bytes (added by audrasjb, 4 years ago)

Patch refreshed - @since mention added

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

    diff --git a/src/wp-admin/includes/export.php b/src/wp-admin/includes/export.php
    index 75c7b4924f..d33e2ffafb 100644
    a b function export_wp( $args = array() ) { 
    542542                        foreach ( $posts as $post ) {
    543543                                setup_postdata( $post );
    544544
    545                                 /** This filter is documented in wp-includes/feed.php */
    546                                 $title = apply_filters( 'the_title_rss', $post->post_title );
     545                                /**
     546                                 * Filters the post title used for WXR exports.
     547                                 *
     548                                 * @since 5.7.0
     549                                 *
     550                                 * @param string $post_title Title of the current post.
     551                                 */
     552                                $title = wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) );
    547553
    548554                                /**
    549555                                 * Filters the post content used for WXR exports.