~canonical-sysadmins/wordpress/4.1.3

« back to all changes in this revision

Viewing changes to wp-admin/includes/export.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
define( 'WXR_VERSION', '1.2' );
17
17
 
18
18
/**
19
 
 * Generates the WXR export file for download
 
19
 * Generates the WXR export file for download.
20
20
 *
21
21
 * @since 2.1.0
22
22
 *
23
 
 * @param array $args Filters defining what should be included in the export
 
23
 * @param array $args Filters defining what should be included in the export.
24
24
 */
25
25
function export_wp( $args = array() ) {
26
26
        global $wpdb, $post;
391
391
                $is_sticky = is_sticky( $post->ID ) ? 1 : 0;
392
392
?>
393
393
        <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
                        /** This filter is documented in wp-includes/feed.php */
 
396
                        echo apply_filters( 'the_title_rss', $post->post_title );
 
397
                ?></title>
396
398
                <link><?php the_permalink_rss() ?></link>
397
399
                <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
398
400
                <dc:creator><?php echo wxr_cdata( get_the_author_meta( 'login' ) ); ?></dc:creator>