mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
Update reports.php
This commit is contained in:
parent
2f8e6de56e
commit
ac2db7f8cc
|
@ -58,7 +58,7 @@ function render_company_report_page() {
|
||||||
|
|
||||||
$status = sanitize_title( $_GET['status'] );
|
$status = sanitize_title( $_GET['status'] );
|
||||||
$pledge_limit = 500;
|
$pledge_limit = 500;
|
||||||
|
|
||||||
if ( ! in_array( $status, array( 'draft', '5ftf-deactivated', 'publish' ) ) ) {
|
if ( ! in_array( $status, array( 'draft', '5ftf-deactivated', 'publish' ) ) ) {
|
||||||
$status = 'all';
|
$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.
|
// 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 '<p>WARNING: pledge limit reached, check the code query.</p>';
|
echo '<p>WARNING: pledge limit reached, check the code query.</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue