s/showposts/posts_per_page/
git-svn-id: https://develop.svn.wordpress.org/trunk@15788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e87af16398
commit
5e37bb785a
@ -652,7 +652,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
|
||||
?>">
|
||||
<ul id="<?php echo $post_type_name; ?>checklist-most-recent" class="categorychecklist form-no-clear">
|
||||
<?php
|
||||
$recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'showposts' => 15 ) );
|
||||
$recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 15 ) );
|
||||
$most_recent = $get_posts->query( $recent_args );
|
||||
$args['walker'] = $walker;
|
||||
echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $most_recent), 0, (object) $args );
|
||||
|
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user