Switch pledge URL (#256)

Change for more usable field
This commit is contained in:
Paul Kevan 2024-05-30 14:39:33 +01:00 committed by GitHub
parent c244c7e596
commit 6b57bb1e7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,7 +113,6 @@ function render_company_report_page() {
$export_data = array(); $export_data = array();
foreach ( $pledges as $pledge ) { foreach ( $pledges as $pledge ) {
$company_url = get_post_meta( $pledge->ID, '5ftf_org-domain', true ); $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 ); $email = get_post_meta( $pledge->ID, '5ftf_org-pledge-email', true );
$date_created = substr( $pledge->post_date, 0, 10 ); $date_created = substr( $pledge->post_date, 0, 10 );
$date_modified = substr( $pledge->post_modified, 0, 10 ); $date_modified = substr( $pledge->post_modified, 0, 10 );
@ -137,12 +136,12 @@ function render_company_report_page() {
echo ' <td>' . esc_html( $usernames ) . '</td>'; echo ' <td>' . esc_html( $usernames ) . '</td>';
echo ' <td>' . esc_html( $teams ) . '</td>'; echo ' <td>' . esc_html( $teams ) . '</td>';
echo ' <td>' . esc_html( $company_url ) . '</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( $email ). '</td>';
echo ' <td>' . esc_html( $date_created ) . '</td>'; echo ' <td>' . esc_html( $date_created ) . '</td>';
echo ' <td>' . esc_html( $date_modified ) . '</td>'; echo ' <td>' . esc_html( $date_modified ) . '</td>';
echo '</tr>'; 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 '</table>';
echo '<p>Total contributors: ' . esc_html( $all_contributors ) . '</p>'; echo '<p>Total contributors: ' . esc_html( $all_contributors ) . '</p>';