Make WordPress Core

Changeset 35417


Ignore:
Timestamp:
10/28/2015 06:17:27 PM (9 years ago)
Author:
boonebgorges
Message:

Don't specify an offset default in get_posts().

The default value should be a null offset. A 0 default overrides any value
of paged passed to get_posts(). See [34697].

Fixes #34060.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-functions.php

    r35382 r35417  
    16111611function get_posts( $args = null ) {
    16121612    $defaults = array(
    1613         'numberposts' => 5, 'offset' => 0,
     1613        'numberposts' => 5,
    16141614        'category' => 0, 'orderby' => 'date',
    16151615        'order' => 'DESC', 'include' => array(),
Note: See TracChangeset for help on using the changeset viewer.