Skip to:
Content

bbPress.org

Changeset 5768


Ignore:
Timestamp:
05/14/2015 02:38:29 AM (10 years ago)
Author:
netweb
Message:

Topics: Correct PHPDoc in bbp_bump_topic_reply_count() and bbp_bump_topic_reply_count_hidden() functions

File:
1 edited

Legend:

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

    r5738 r5768  
    23252325 * @since bbPress (r3825)
    23262326 *
    2327  * @param int $topic_id Optional. Forum id.
     2327 * @param int $topic_id   Optional. Topic id.
    23282328 * @param int $difference Optional. Default 1
    2329  * @param bool $update_ancestors Optional. Default true
    23302329 * @uses bbp_get_topic_id() To get the topic id
     2330 * @uses bbp_get_topic_reply_count() To get the topic reply count
    23312331 * @uses update_post_meta() To update the topic's reply count meta
    23322332 * @uses apply_filters() Calls 'bbp_bump_topic_reply_count' with the reply
    23332333 *                        count, topic id, and difference
    2334  * @return int Forum reply count
     2334 * @return int Topic reply count
    23352335 */
    23362336function bbp_bump_topic_reply_count( $topic_id = 0, $difference = 1 ) {
     
    23582358 * @since bbPress (r3825)
    23592359 *
    2360  * @param int $topic_id Optional. Forum id.
     2360 * @param int $topic_id   Optional. Topic id.
    23612361 * @param int $difference Optional. Default 1
    23622362 * @uses bbp_get_topic_id() To get the topic id
     
    23652365 * @uses apply_filters() Calls 'bbp_bump_topic_reply_count_hidden' with the
    23662366 *                        reply count, topic id, and difference
    2367  * @return int Forum hidden reply count
     2367 * @return int Topic hidden reply count
    23682368 */
    23692369function bbp_bump_topic_reply_count_hidden( $topic_id = 0, $difference = 1 ) {
     
    23802380    $new_count   = (int) ( $reply_count + $difference );
    23812381
    2382     // Update this topic id's hidder reply count
     2382    // Update this topic id's hidden reply count
    23832383    update_post_meta( $topic_id, '_bbp_reply_count_hidden', $new_count );
    23842384
Note: See TracChangeset for help on using the changeset viewer.