Merge pull request #8284 from justinshreve/api-key-pagination
Round total_pages calculation up in the API keys list table.
This commit is contained in:
commit
2a122feb5c
|
@ -188,7 +188,7 @@ class WC_Admin_API_Keys_Table_List extends WP_List_Table {
|
||||||
$this->set_pagination_args( array(
|
$this->set_pagination_args( array(
|
||||||
'total_items' => $count,
|
'total_items' => $count,
|
||||||
'per_page' => $per_page,
|
'per_page' => $per_page,
|
||||||
'total_pages' => $count / $per_page
|
'total_pages' => ceil( $count / $per_page )
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue