Use setup_postdata instead of deprecated start_wp. fixes #3188

git-svn-id: https://develop.svn.wordpress.org/trunk@6077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-09-11 18:56:16 +00:00
parent a3a3332714
commit c373b9c880

View File

@ -193,7 +193,7 @@ print '<?xml version="1.0" encoding="' . get_bloginfo('charset') . '"?' . ">\n";
$where = "WHERE ID IN (".join(',', $next_posts).")";
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
foreach ($posts as $post) {
start_wp(); ?>
setup_postdata($post); ?>
<item>
<title><?php the_title_rss() ?></title>
<link><?php the_permalink_rss() ?></link>