s/showposts/posts_per_page/
git-svn-id: http://svn.automattic.com/wordpress/trunk@15788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -542,7 +542,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
else if ( $number > 15 )
|
||||
$number = 15;
|
||||
|
||||
$r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
|
||||
$r = new WP_Query(array('posts_per_page' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
|
||||
if ($r->have_posts()) :
|
||||
?>
|
||||
<?php echo $before_widget; ?>
|
||||
|
||||
@@ -653,7 +653,7 @@ function wp_get_associated_nav_menu_items( $object_id = 0, $object_type = 'post_
|
||||
'meta_value' => $object_id,
|
||||
'post_status' => 'any',
|
||||
'post_type' => 'nav_menu_item',
|
||||
'showposts' => -1,
|
||||
'posts_per_page' => -1,
|
||||
)
|
||||
);
|
||||
foreach( (array) $menu_items as $menu_item ) {
|
||||
|
||||
Reference in New Issue
Block a user