log in to your WordPress.org account in order to view your pledges.', 'wporg-5ftf' ), esc_url( wp_login_url( get_permalink() ) ) ) ); return; } $user = wp_get_current_user(); $profile_data = XProfile\get_contributor_user_data( $user->ID ); $pledge_url = get_permalink( get_page_by_path( 'for-organizations' ) ); $success_message = Contributor\process_my_pledges_form(); $contributor_pending_posts = get_posts( array( 'title' => $user->user_login, 'post_type' => CONTRIBUTOR_POST_TYPE, 'post_status' => array( 'pending' ), 'numberposts' => 100, ) ); $contributor_publish_posts = get_posts( array( 'title' => $user->user_login, 'post_type' => CONTRIBUTOR_POST_TYPE, 'post_status' => array( 'publish' ), 'numberposts' => 100, ) ); $has_contributions = $contributor_pending_posts || $contributor_publish_posts; $has_profile_data = $profile_data['hours_per_week'] && $profile_data['team_names']; ?>
submit a pledge and list you as a contributor.', 'wporg-5ftf' ), esc_url( $pledge_url ) ) ); ?>