[wp-testers] Build 8772 and Query Error

Ryan Lin ryan at webfwrd.com
Fri Aug 29 10:27:38 GMT 2008

Display following error

Warning: Invalid argument supplied for foreach() in
on line 22

For followin query:

                    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');
                    <?php endforeach; ?>

It was working fine before I update to build 8772.

More information about the wp-testers mailing list