Flip placeholder pending status to publish now that testing done.

This commit is contained in:
Ian Dunn 2019-10-29 10:15:22 -07:00
parent f409dbd3a6
commit 189c61bfe8
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 2 additions and 4 deletions

View file

@ -49,8 +49,7 @@ function get_xprofile_contribution_data( array $user_ids ) {
* @return array|false * @return array|false
*/ */
function get_aggregate_contributor_data_for_pledge( $pledge_id ) { function get_aggregate_contributor_data_for_pledge( $pledge_id ) {
// TODO set to 'publish' when finished testing. $contributor_posts = Contributor\get_pledge_contributors( $pledge_id, 'publish' );
$contributor_posts = Contributor\get_pledge_contributors( $pledge_id, 'pending' );
// All of their contributors might have declined the invitation and had their posts deleted. // All of their contributors might have declined the invitation and had their posts deleted.
if ( ! $contributor_posts ) { if ( ! $contributor_posts ) {

View file

@ -10,8 +10,7 @@ use const WordPressDotOrg\FiveForTheFuture\PledgeMeta\META_PREFIX;
$contribution_data = XProfile\get_aggregate_contributor_data_for_pledge( get_the_ID() ); $contribution_data = XProfile\get_aggregate_contributor_data_for_pledge( get_the_ID() );
$contributors = Contributor\get_contributor_user_objects( $contributors = Contributor\get_contributor_user_objects(
// TODO set to 'publish' when finished testing. Contributor\get_pledge_contributors( get_the_ID(), 'publish' )
Contributor\get_pledge_contributors( get_the_ID(), 'pending' )
); );
$report_page = get_page_by_path( 'report' ); $report_page = get_page_by_path( 'report' );