From 6b57bb1e7ee031965b2cd3d2befb4db71ef70510 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Thu, 30 May 2024 14:39:33 +0100 Subject: [PATCH] Switch pledge URL (#256) Change for more usable field --- plugins/wporg-5ftf/includes/reports.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/wporg-5ftf/includes/reports.php b/plugins/wporg-5ftf/includes/reports.php index d6bd86c..4485340 100644 --- a/plugins/wporg-5ftf/includes/reports.php +++ b/plugins/wporg-5ftf/includes/reports.php @@ -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 ); @@ -137,12 +136,12 @@ function render_company_report_page() { echo ' ' . esc_html( $usernames ) . ''; echo ' ' . esc_html( $teams ) . ''; echo ' ' . esc_html( $company_url ) . ''; - echo ' ' . esc_html( $pledge_url ) . ''; + echo ' ' . esc_html( $pledge->guid ) . ''; echo ' ' . esc_html( $email ). ''; echo ' ' . esc_html( $date_created ) . ''; echo ' ' . esc_html( $date_modified ) . ''; echo ''; - $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 ''; echo '

Total contributors: ' . esc_html( $all_contributors ) . '

';