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.
'; } ?>