Update contributor.php

ws
This commit is contained in:
Paul Kevan 2024-07-03 10:50:57 +01:00 committed by GitHub
parent 9253a03e18
commit 8ccb90bef0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,14 +167,14 @@ function add_pledge_contributors( $pledge_id, $contributors ) {
foreach ( $contributors as $wporg_username ) {
$wporg_user = get_user_by( 'slug', $wporg_username );
$args = array(
'post_type' => CPT_ID,
'post_title' => sanitize_user( $wporg_username ),
'post_parent' => $pledge_id,
'post_status' => 'pending',
'meta_input' => array(
'wporg_user_id' => $wporg_user->ID,
'wporg_user_id' => $wporg_user->ID,
),
);