WordPress.org

Make WordPress Core

Ticket #10462: wp-admin--includes--export.php.diff

File wp-admin--includes--export.php.diff, 1.0 KB (added by josephscott, 11 years ago)
  • wp-admin/includes/export.php

     
    268268                        // Don't export revisions.  They bloat the export.
    269269                        if ( 'revision' == $post->post_type )
    270270                                continue;
    271                         setup_postdata($post); ?>
     271                        setup_postdata($post);
     272
     273                        $is_sticky = 0;
     274                        if ( is_sticky( $post->ID ) )
     275                                $is_sticky = 1;
     276
     277?>
    272278<item>
    273279<title><?php echo apply_filters('the_title_rss', $post->post_title); ?></title>
    274280<link><?php the_permalink_rss() ?></link>
     
    291297<wp:menu_order><?php echo $post->menu_order; ?></wp:menu_order>
    292298<wp:post_type><?php echo $post->post_type; ?></wp:post_type>
    293299<wp:post_password><?php echo $post->post_password; ?></wp:post_password>
     300<wp:is_sticky><?php echo $is_sticky; ?></wp:is_sticky>
    294301<?php
    295302if ($post->post_type == 'attachment') { ?>
    296303<wp:attachment_url><?php echo wp_get_attachment_url($post->ID); ?></wp:attachment_url>