Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15150 closed defect (bug) (fixed)

numberposts default in get_posts is overriding posts_per_page argument

Reported by: bobbyblade Owned by:
Priority: normal Milestone: 3.1
Component: General Version: 3.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

In the get_posts function there is currently a bug where if you specify the posts_per_page argument it will be overridden due to the numberposts in the default argument set.

Attachments (1)

post.php.diff (579 bytes ) - added by bobbyblade 16 years ago.
post.php get_posts fix

Download all attachments as: .zip

Change History (3)

@bobbyblade
16 years ago

post.php get_posts fix

#1 @scribu
16 years ago

  • Milestone Awaiting Review3.1

#2 @scribu
16 years ago

  • Resolutionfixed
  • Status newclosed

(In [15852]) Don't stomp on posts_per_page in get_posts(). Props bobbyblade. Fixes #15150

Note: See TracTickets for help on using tickets.