Prevent foreach errors, should probably be moved to new loop method?
git-svn-id: https://develop.svn.wordpress.org/trunk@1957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c1676ef38e
commit
f730b81576
@ -14,7 +14,7 @@ echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>';
|
|||||||
<channel>
|
<channel>
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($posts as $post) { start_wp();
|
if ($posts) { foreach ($posts as $post) { start_wp();
|
||||||
if ($i < 1) {
|
if ($i < 1) {
|
||||||
$i++;
|
$i++;
|
||||||
?>
|
?>
|
||||||
@ -68,7 +68,7 @@ foreach ($posts as $post) { start_wp();
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} }
|
||||||
?>
|
?>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
Loading…
Reference in New Issue
Block a user