Changeset 3911 for branches/plugin/bbp-includes/bbp-common-functions.php
- Timestamp:
- 05/22/2012 08:00:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-common-functions.php
r3902 r3911 693 693 * @uses get_option() To get the throttle time 694 694 * @uses get_transient() To get the last posted transient of the ip 695 * @uses get_user_meta() To get the last posted metaof the user695 * @uses bbp_get_user_last_posted() To get the last posted time of the user 696 696 * @uses current_user_can() To check if the current user can throttle 697 697 * @return bool True if there is no flooding, false if there is … … 715 715 } elseif ( !empty( $author_id ) ) { 716 716 $author_id = (int) $author_id; 717 $last_posted = get_user_meta( $author_id, '_bbp_last_posted', true);717 $last_posted = bbp_get_user_last_posted( $author_id ); 718 718 719 719 if ( isset( $last_posted ) && time() < $last_posted + $throttle_time && !current_user_can( 'throttle' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.