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:
parent
87fcc363c1
commit
6df40aea78
|
@ -193,7 +193,7 @@ print '<?xml version="1.0" encoding="' . get_bloginfo('charset') . '"?' . ">\n";
|
||||||
$where = "WHERE ID IN (".join(',', $next_posts).")";
|
$where = "WHERE ID IN (".join(',', $next_posts).")";
|
||||||
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
|
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
|
||||||
foreach ($posts as $post) {
|
foreach ($posts as $post) {
|
||||||
start_wp(); ?>
|
setup_postdata($post); ?>
|
||||||
<item>
|
<item>
|
||||||
<title><?php the_title_rss() ?></title>
|
<title><?php the_title_rss() ?></title>
|
||||||
<link><?php the_permalink_rss() ?></link>
|
<link><?php the_permalink_rss() ?></link>
|
||||||
|
|
Loading…
Reference in New Issue