Use setup_postdata instead of deprecated start_wp. fixes #3188

git-svn-id: http://svn.automattic.com/wordpress/trunk@6077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-09-11 18:56:16 +00:00
parent 87fcc363c1
commit 6df40aea78
1 changed files with 1 additions and 1 deletions

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>