Changeset 7104 for branches/2.6/src/includes/topics/functions.php
- Timestamp:
- 06/05/2020 08:56:16 PM (6 years ago)
- File:
-
- 1 edited
-
branches/2.6/src/includes/topics/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/topics/functions.php
r7097 r7104 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 } else { 793 if ( empty( $is_edit ) && ! current_user_can( 'throttle' ) ) { 794 bbp_update_user_last_posted( $author_id ); 789 set_transient( '_bbp_' . bbp_current_author_ip() . '_last_posted', time(), HOUR_IN_SECONDS ); 795 790 } 796 791 } … … 820 815 if ( empty( $is_edit ) ) { 821 816 822 // Update poster IP if not editing 817 // Update poster activity time 818 bbp_update_user_last_posted( $author_id ); 819 820 // Update poster IP 823 821 update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false ); 824 822
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)