mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-21 10:33:44 +03:00
Flip placeholder pending
status to publish
now that testing done.
This commit is contained in:
parent
f409dbd3a6
commit
189c61bfe8
|
@ -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 ) {
|
||||||
|
|
|
@ -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' );
|
||||||
|
|
Loading…
Reference in a new issue