Make sure the first number in LIMIT clause in WP_Query::get_posts() is always an integer.
fixes #23383. Built from https://develop.svn.wordpress.org/trunk@28864 git-svn-id: http://core.svn.wordpress.org/trunk@28664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ad56ce548
commit
aebf8f0fea
|
@ -2874,7 +2874,7 @@ class WP_Query {
|
|||
$page = 1;
|
||||
|
||||
if ( empty($q['offset']) ) {
|
||||
$pgstrt = ($page - 1) * $q['posts_per_page'] . ', ';
|
||||
$pgstrt = absint( ( $page - 1 ) * $q['posts_per_page'] ) . ', ';
|
||||
} else { // we're ignoring $page and using 'offset'
|
||||
$q['offset'] = absint($q['offset']);
|
||||
$pgstrt = $q['offset'] . ', ';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.0-alpha-20140626';
|
||||
$wp_version = '4.0-alpha-20140627';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue