From 189c61bfe8bdc3a88b59416254defb00758f7fee Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Tue, 29 Oct 2019 10:15:22 -0700 Subject: [PATCH] Flip placeholder `pending` status to `publish` now that testing done. --- plugins/wporg-5ftf/includes/xprofile.php | 3 +-- themes/wporg-5ftf/single-5ftf_pledge.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/wporg-5ftf/includes/xprofile.php b/plugins/wporg-5ftf/includes/xprofile.php index 9cc31af..56d981e 100644 --- a/plugins/wporg-5ftf/includes/xprofile.php +++ b/plugins/wporg-5ftf/includes/xprofile.php @@ -49,8 +49,7 @@ function get_xprofile_contribution_data( array $user_ids ) { * @return array|false */ function get_aggregate_contributor_data_for_pledge( $pledge_id ) { - // TODO set to 'publish' when finished testing. - $contributor_posts = Contributor\get_pledge_contributors( $pledge_id, 'pending' ); + $contributor_posts = Contributor\get_pledge_contributors( $pledge_id, 'publish' ); // All of their contributors might have declined the invitation and had their posts deleted. if ( ! $contributor_posts ) { diff --git a/themes/wporg-5ftf/single-5ftf_pledge.php b/themes/wporg-5ftf/single-5ftf_pledge.php index d43ff34..37be53f 100644 --- a/themes/wporg-5ftf/single-5ftf_pledge.php +++ b/themes/wporg-5ftf/single-5ftf_pledge.php @@ -10,8 +10,7 @@ use const WordPressDotOrg\FiveForTheFuture\PledgeMeta\META_PREFIX; $contribution_data = XProfile\get_aggregate_contributor_data_for_pledge( get_the_ID() ); $contributors = Contributor\get_contributor_user_objects( - // TODO set to 'publish' when finished testing. - Contributor\get_pledge_contributors( get_the_ID(), 'pending' ) + Contributor\get_pledge_contributors( get_the_ID(), 'publish' ) ); $report_page = get_page_by_path( 'report' );