@@ 478-486 (lines=9) @@ | ||
475 | ||
476 | $comment_html = array(); |
|
477 | ||
478 | if ( ! empty( $comments ) ) { |
|
479 | foreach ( $comments as $comment ) { |
|
480 | $comment_html[] = sprintf( |
|
481 | '%s - %s', |
|
482 | date( 'Y-m-d', strtotime( $comment->comment_date ) ), |
|
483 | $comment->comment_content |
|
484 | ); |
|
485 | } |
|
486 | } |
|
487 | ||
488 | $data[ $i ]['donation_note_private'] = implode( "\n", $comment_html ); |
|
489 | } |
|
@@ 505-513 (lines=9) @@ | ||
502 | ||
503 | $comment_html = array(); |
|
504 | ||
505 | if ( ! empty( $comments ) ) { |
|
506 | foreach ( $comments as $comment ) { |
|
507 | $comment_html[] = sprintf( |
|
508 | '%s - %s', |
|
509 | date( 'Y-m-d', strtotime( $comment->comment_date ) ), |
|
510 | $comment->comment_content |
|
511 | ); |
|
512 | } |
|
513 | } |
|
514 | $data[ $i ]['donation_note_to_donor'] = implode( "\n", $comment_html ); |
|
515 | } |
|
516 |
@@ 1038-1043 (lines=6) @@ | ||
1035 | $comments = Give()->comment->db->get_results_by( array( 'comment_parent' => $this->id ) ); |
|
1036 | ||
1037 | // Generate notes output as we are doing before 2.3.0. |
|
1038 | if( ! empty( $comments ) ) { |
|
1039 | /* @var stdClass $comment */ |
|
1040 | foreach ( $comments as $comment ) { |
|
1041 | $all_notes .= date_i18n( 'F j, Y H:i:s', strtotime( $comment->comment_date ) ) . " - {$comment->comment_content}\n\n"; |
|
1042 | } |
|
1043 | } |
|
1044 | ||
1045 | // Backward compatibility. |
|
1046 | if( ! give_has_upgrade_completed('v230_move_donor_note') ) { |