Plugin Updates
This commit is contained in:
@@ -152,7 +152,7 @@ class WP_REST_Search_Controller extends WP_REST_Controller {
|
||||
$total = (int) $result[ WP_REST_Search_Handler::RESULT_TOTAL ];
|
||||
$page = (int) $request['page'];
|
||||
$per_page = (int) $request['per_page'];
|
||||
$max_pages = ceil( $total / $per_page );
|
||||
$max_pages = (int) ceil( $total / $per_page );
|
||||
|
||||
if ( $page > $max_pages && $total > 0 ) {
|
||||
return new WP_Error(
|
||||
|
||||
Reference in New Issue
Block a user