Ticket #3389: 3389.patch
| File 3389.patch, 1.4 KB (added by , 5 years ago) |
|---|
-
src/includes/replies/functions.php
796 796 return; 797 797 } 798 798 799 // Check if a revision was created. This should be removed once #30854 is resolved in core. 800 if ( 0 === count( wp_get_post_revisions( $reply_id ) ) ) { 801 wp_save_post_revision( $reply_id ); 802 } 803 799 804 // Check author_id 800 805 if ( empty( $author_id ) ) { 801 806 $author_id = bbp_get_current_user_id(); -
src/includes/topics/functions.php
19 19 * @since 2.0.0 bbPress (r3349) 20 20 * 21 21 * @param array $topic_data Forum post data 22 * @param arra p$topic_meta Forum meta data22 * @param array $topic_meta Forum meta data 23 23 */ 24 24 function bbp_insert_topic( $topic_data = array(), $topic_meta = array() ) { 25 25 … … 739 739 return; 740 740 } 741 741 742 // Check if a revision was created. This should be removed once #30854 is resolved in core. 743 if ( 0 === count( wp_get_post_revisions( $topic_id ) ) ) { 744 wp_save_post_revision( $topic_id ); 745 } 746 742 747 // Check author_id 743 748 if ( empty( $author_id ) ) { 744 749 $author_id = bbp_get_current_user_id();