Skip to content

Commit

Permalink
Switch pledge URL (#256)
Browse files Browse the repository at this point in the history
Change for more usable field
  • Loading branch information
pkevan authored May 30, 2024
1 parent c244c7e commit 6b57bb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/wporg-5ftf/includes/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ function render_company_report_page() {
$export_data = array();
foreach ( $pledges as $pledge ) {
$company_url = get_post_meta( $pledge->ID, '5ftf_org-domain', true );
$pledge_url = get_post_meta( $pledge->ID, '5ftf_org-url', true );
$email = get_post_meta( $pledge->ID, '5ftf_org-pledge-email', true );
$date_created = substr( $pledge->post_date, 0, 10 );
$date_modified = substr( $pledge->post_modified, 0, 10 );
Expand All @@ -137,12 +136,12 @@ function render_company_report_page() {
echo ' <td>' . esc_html( $usernames ) . '</td>';
echo ' <td>' . esc_html( $teams ) . '</td>';
echo ' <td>' . esc_html( $company_url ) . '</td>';
echo ' <td>' . esc_html( $pledge_url ) . '</td>';
echo ' <td>' . esc_html( $pledge->guid ) . '</td>';
echo ' <td>' . esc_html( $email ). '</td>';
echo ' <td>' . esc_html( $date_created ) . '</td>';
echo ' <td>' . esc_html( $date_modified ) . '</td>';
echo '</tr>';
$export_data[] = array( $pledge->post_title, $pledge->post_status, $hours, $contributors, $usernames, $teams, $company_url, $pledge_url, $email, $date_created, $date_modified );
$export_data[] = array( $pledge->post_title, $pledge->post_status, $hours, $contributors, $usernames, $teams, $company_url, $pledge->guid, $email, $date_created, $date_modified );
}
echo '</table>';
echo '<p>Total contributors: ' . esc_html( $all_contributors ) . '</p>';
Expand Down

0 comments on commit 6b57bb1

Please sign in to comment.