mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-21 02:23:43 +03:00
parent
c244c7e596
commit
6b57bb1e7e
|
@ -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>';
|
||||||
|
|
Loading…
Reference in a new issue