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:
parent
70689237f3
commit
91c191f5d7
|
@ -1610,7 +1610,7 @@ function is_post_type_viewable( $post_type_object ) {
|
||||||
*/
|
*/
|
||||||
function get_posts( $args = null ) {
|
function get_posts( $args = null ) {
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'numberposts' => 5, 'offset' => 0,
|
'numberposts' => 5,
|
||||||
'category' => 0, 'orderby' => 'date',
|
'category' => 0, 'orderby' => 'date',
|
||||||
'order' => 'DESC', 'include' => array(),
|
'order' => 'DESC', 'include' => array(),
|
||||||
'exclude' => array(), 'meta_key' => '',
|
'exclude' => array(), 'meta_key' => '',
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue