mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
Update contributor.php
ws
This commit is contained in:
parent
9253a03e18
commit
8ccb90bef0
|
@ -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,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue