diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 3fcb942aa7..e79f460fc5 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -2020,8 +2020,7 @@ class WP_Query { } if ( isset( $q['page'] ) ) { - $q['page'] = trim( $q['page'], '/' ); - $q['page'] = absint( $q['page'] ); + $q['page'] = is_scalar( $q['page'] ) ? absint( trim( $q['page'], '/' ) ) : 0; } // If true, forcibly turns off SQL_CALC_FOUND_ROWS even when limits are present. diff --git a/wp-includes/version.php b/wp-includes/version.php index b2ac7a3bdf..ac5beebc97 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-beta2-56814'; +$wp_version = '6.4-beta2-56815'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.