Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/16/2015 06:43:03 AM (9 years ago)
Author:
netweb
Message:

Topics: Return string in bbp_update_forum_last_active_time()

Includes updated PHPdocs and unit tests for bbp_update_topic_last_*() functions.

Props thebrandonallen. See #2811

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/topics/functions.php

    r5908 r5917  
    25882588 * Update the topics last active date/time (aka freshness)
    25892589 *
    2590  * @since bbPress (r2680)
    2591  *
    2592  * @param int $topic_id Optional. Topic id
    2593  * @param string $new_time Optional. New time in mysql format
     2590 * @since 2.0.0 bbPress (r2680)
     2591 *
     2592 * @param int    $topic_id Optional. Topic id.
     2593 * @param string $new_time Optional. New time in mysql format.
     2594 * @uses bbp_is_reply() To check if the passed topic id is a reply
    25942595 * @uses bbp_get_topic_id() To get the topic id
    25952596 * @uses bbp_get_reply_topic_id() To get the reply topic id
    2596  * @uses current_time() To get the current time
    2597  * @uses update_post_meta() To update the topic last active meta
    2598  * @return bool True on success, false on failure
     2597 * @uses get_post_field() To get the timestamp of the newest topic reply
     2598 * @uses bbp_get_public_child_last_id() To get the newest topic reply id
     2599 * @uses bbp_get_reply_post_type() To get the reply post type
     2600 * @uses update_post_meta() To update the topic last active time meta
     2601 * @return string MySQL timestamp of last active reply
    25992602 */
    26002603function bbp_update_topic_last_active_time( $topic_id = 0, $new_time = '' ) {
Note: See TracChangeset for help on using the changeset viewer.