Skip to content

Commit

Permalink
Fix fatal error in give-export-donations-exporter.php (#7417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Genevieve-K authored Jul 10, 2024
1 parent eaeecdd commit f47aec8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ public function get_percentage_complete() {
* @access public
*
* @since 2.1
* @unreleased Use maybe_serialize() for column data (some data are arrays)
*
* @return string|false
*/
Expand All @@ -663,6 +664,7 @@ public function print_csv_rows() {
foreach ( $row as $col_id => $column ) {
// Make sure the column is valid
if ( array_key_exists( $col_id, $cols ) ) {
$column = maybe_serialize( $column );
$row_data .= '"' . $this->escape_csv_cell_data(preg_replace( '/"/', "'", $column )) . '"';
$row_data .= $i == count( $cols ) ? '' : ',';
$i ++;
Expand Down

0 comments on commit f47aec8

Please sign in to comment.