Changeset 7105 for trunk/src/includes/topics/functions.php
- Timestamp:
- 06/05/2020 08:59:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r7098 r7105 787 787 // Set transient for throttle check (only on new, not edit) 788 788 if ( empty( $is_edit ) ) { 789 set_transient( '_bbp_' . bbp_current_author_ip() . '_last_posted', time() ); 790 } 791 792 // If not anonymous, then 793 } else { 794 if ( empty( $is_edit ) && ! current_user_can( 'throttle' ) ) { 795 bbp_update_user_last_posted( $author_id ); 789 set_transient( '_bbp_' . bbp_current_author_ip() . '_last_posted', time(), HOUR_IN_SECONDS ); 796 790 } 797 791 } … … 821 815 if ( empty( $is_edit ) ) { 822 816 823 // Update poster IP if not editing 817 // Update poster activity time 818 bbp_update_user_last_posted( $author_id ); 819 820 // Update poster IP 824 821 update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false ); 825 822
Note: See TracChangeset
for help on using the changeset viewer.