Ticket #1989: revision-log.patch
File revision-log.patch, 1.4 KB (added by , 12 years ago) |
---|
-
includes/replies/template-tags.php
632 632 * @uses bbp_get_time_since() To get the time in since format 633 633 * @uses apply_filters() Calls 'bbp_get_reply_revision_log' with the 634 634 * log and reply id 635 * @uses apply_filters() Calls 'bbp_reply_revision_log_limit' with the 636 * amount of revisions to show 635 637 * @return string Revision log of the reply 636 638 */ 637 639 function bbp_get_reply_revision_log( $reply_id = 0 ) { … … 658 660 659 661 $r = "\n\n" . '<ul id="bbp-reply-revision-log-' . $reply_id . '" class="bbp-reply-revision-log">' . "\n\n"; 660 662 663 $limit = (int) apply_filters( 'bbp_reply_revision_log_limit', 1 ); 664 665 if ( $limit > 0 ) 666 $revisions = array_slice( (array) $revisions, 0, $limit ); 667 661 668 // Loop through revisions 662 foreach ( (array) $revisions as $revision ) { 663 669 foreach ( $revisions as $revision ) { 664 670 if ( empty( $revision_log[$revision->ID] ) ) { 665 671 $author_id = $revision->post_author; 666 672 $reason = ''; … … 679 685 $r .= "\t\t" . sprintf( __( 'This reply was modified %1$s by %2$s.', 'bbpress' ), $since, $author ) . "\n"; 680 686 } 681 687 $r .= "\t" . '</li>' . "\n"; 682 683 688 } 684 689 685 690 $r .= "\n" . '</ul>' . "\n\n";