From 22092bec7b0601da062a54b3c920765896edab9f Mon Sep 17 00:00:00 2001 From: Timothy Jacobs Date: Wed, 11 Nov 2020 15:26:18 -0500 Subject: [PATCH] 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. --- inc/class-formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-formatter.php b/inc/class-formatter.php index 7ab4b2f..41ebd4b 100644 --- a/inc/class-formatter.php +++ b/inc/class-formatter.php @@ -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 {