From ac2db7f8cc47ced274109269f49c64bf60fd5f8f Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Thu, 23 May 2024 15:13:15 +0100 Subject: [PATCH] Update reports.php --- plugins/wporg-5ftf/includes/reports.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wporg-5ftf/includes/reports.php b/plugins/wporg-5ftf/includes/reports.php index c8097db..d6bd86c 100644 --- a/plugins/wporg-5ftf/includes/reports.php +++ b/plugins/wporg-5ftf/includes/reports.php @@ -58,7 +58,7 @@ function render_company_report_page() { $status = sanitize_title( $_GET['status'] ); $pledge_limit = 500; - + if ( ! in_array( $status, array( 'draft', '5ftf-deactivated', 'publish' ) ) ) { $status = 'all'; } @@ -72,7 +72,7 @@ function render_company_report_page() { ) ); // Add visible warning on page if we hit the upper limit of the query. - if ( $pledge_limit === count( $pledges ) ) { + if ( count( $pledges ) === $pledge_limit ) { echo '

WARNING: pledge limit reached, check the code query.

'; } ?>