Make WordPress Core

Changeset 15788


Ignore:
Timestamp:
10/13/2010 05:25:00 AM (14 years ago)
Author:
nacin
Message:

s/showposts/posts_per_page/

Location:
trunk
Files:
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r15471 r15788  
    653653            <ul id="<?php echo $post_type_name; ?>checklist-most-recent" class="categorychecklist form-no-clear">
    654654                <?php
    655                 $recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'showposts' => 15 ) );
     655                $recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 15 ) );
    656656                $most_recent = $get_posts->query( $recent_args );
    657657                $args['walker'] = $walker;
  • trunk/wp-includes/default-widgets.php

    r15589 r15788  
    543543            $number = 15;
    544544
    545         $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
     545        $r = new WP_Query(array('posts_per_page' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
    546546        if ($r->have_posts()) :
    547547?>
  • trunk/wp-includes/nav-menu.php

    r15590 r15788  
    654654            'post_status' => 'any',
    655655            'post_type' => 'nav_menu_item',
    656             'showposts' => -1,
     656            'posts_per_page' => -1,
    657657        )
    658658    );
Note: See TracChangeset for help on using the changeset viewer.