Remove default value from $include_total

This parameter isn't actually optional because it is followed by required parameters. This issues a warning on PHP 8.
This commit is contained in:
Timothy Jacobs 2020-11-11 15:26:18 -05:00 committed by GitHub
parent ef7bcac43e
commit 22092bec7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ class Formatter {
*
* @param array $items
*/
public function display_items( $items, $include_total = true, $order, $orderby ) {
public function display_items( $items, $include_total, $order, $orderby ) {
if ( 'table' === $this->args['format'] && empty( $this->args['field'] ) ) {
$this->show_table( $order, $orderby, $items, $this->args['fields'], $include_total );
} else {