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.
Built from https://develop.svn.wordpress.org/trunk@35417


git-svn-id: http://core.svn.wordpress.org/trunk@35381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-10-28 18:18:24 +00:00
parent 70689237f3
commit 91c191f5d7
2 changed files with 2 additions and 2 deletions

View File

@ -1610,7 +1610,7 @@ function is_post_type_viewable( $post_type_object ) {
*/
function get_posts( $args = null ) {
$defaults = array(
'numberposts' => 5, 'offset' => 0,
'numberposts' => 5,
'category' => 0, 'orderby' => 'date',
'order' => 'DESC', 'include' => array(),
'exclude' => array(), 'meta_key' => '',

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta1-35416';
$wp_version = '4.4-beta1-35417';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.