Changeset 7104 for branches/2.6/src/includes/replies/functions.php
- Timestamp:
- 06/05/2020 08:56:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/replies/functions.php
r7097 r7104 820 820 // Set transient for throttle check (only on new, not edit) 821 821 if ( empty( $is_edit ) ) { 822 set_transient( '_bbp_' . bbp_current_author_ip() . '_last_posted', time() ); 823 } 824 825 } else { 826 if ( empty( $is_edit ) && ! current_user_can( 'throttle' ) ) { 827 bbp_update_user_last_posted( $author_id ); 822 set_transient( '_bbp_' . bbp_current_author_ip() . '_last_posted', time(), HOUR_IN_SECONDS ); 828 823 } 829 824 } … … 858 853 if ( empty( $is_edit ) ) { 859 854 860 // Update poster IP if not editing 855 // Update poster activity time 856 bbp_update_user_last_posted( $author_id ); 857 858 // Update poster IP 861 859 update_post_meta( $reply_id, '_bbp_author_ip', bbp_current_author_ip(), false ); 862 860
Note: See TracChangeset
for help on using the changeset viewer.