[wp-testers] Build 8772 and Query Error
DD32
wordpress at dd32.id.au
Fri Aug 29 10:51:13 GMT 2008
I had the same issue with get_posts returning null instead of the correct
results.. See my last reply on http://trac.wordpress.org/ticket/7326
On Fri, 29 Aug 2008 20:27:38 +1000, Ryan Lin <ryan at webfwrd.com> wrote:
> Display following error
>
> Warning: Invalid argument supplied for foreach() in
> /mnt/local/home/webfwrd/blogfwrd.com/wp-content/themes/blogfwrd/sidebar.php
> on line 22
>
>
> For followin query:
>
> <?php
> global $post;
> $recentposts = get_posts('numberposts=10');
> foreach($recentposts as $post) :?>
> <li><a href="<?php the_permalink(); ?>"><?php
> the_title(); ?><small>Posted on <?php the_time('l, F j, Y');
> ?></small></a></li>
> <?php endforeach; ?>
>
> It was working fine before I update to build 8772.
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
More information about the wp-testers
mailing list