diff --git a/wp-includes/query.php b/wp-includes/query.php index e7e60d5233..e348c1f729 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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'] . ', '; diff --git a/wp-includes/version.php b/wp-includes/version.php index 9522bdc96f..61cea8b307 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.