From 91c191f5d7a7d8877b45c5db7c36ccfe2d748e3c Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 28 Oct 2015 18:18:24 +0000 Subject: [PATCH] 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 --- wp-includes/post-functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-functions.php b/wp-includes/post-functions.php index 58961fe025..34452c462e 100644 --- a/wp-includes/post-functions.php +++ b/wp-includes/post-functions.php @@ -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' => '', diff --git a/wp-includes/version.php b/wp-includes/version.php index 63b903f6d0..73527bad08 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.