Changeset 5768
- Timestamp:
- 05/14/2015 02:38:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r5738 r5768 2325 2325 * @since bbPress (r3825) 2326 2326 * 2327 * @param int $topic_id Optional. Forumid.2327 * @param int $topic_id Optional. Topic id. 2328 2328 * @param int $difference Optional. Default 1 2329 * @param bool $update_ancestors Optional. Default true2330 2329 * @uses bbp_get_topic_id() To get the topic id 2330 * @uses bbp_get_topic_reply_count() To get the topic reply count 2331 2331 * @uses update_post_meta() To update the topic's reply count meta 2332 2332 * @uses apply_filters() Calls 'bbp_bump_topic_reply_count' with the reply 2333 2333 * count, topic id, and difference 2334 * @return int Forumreply count2334 * @return int Topic reply count 2335 2335 */ 2336 2336 function bbp_bump_topic_reply_count( $topic_id = 0, $difference = 1 ) { … … 2358 2358 * @since bbPress (r3825) 2359 2359 * 2360 * @param int $topic_id Optional. Forumid.2360 * @param int $topic_id Optional. Topic id. 2361 2361 * @param int $difference Optional. Default 1 2362 2362 * @uses bbp_get_topic_id() To get the topic id … … 2365 2365 * @uses apply_filters() Calls 'bbp_bump_topic_reply_count_hidden' with the 2366 2366 * reply count, topic id, and difference 2367 * @return int Forumhidden reply count2367 * @return int Topic hidden reply count 2368 2368 */ 2369 2369 function bbp_bump_topic_reply_count_hidden( $topic_id = 0, $difference = 1 ) { … … 2380 2380 $new_count = (int) ( $reply_count + $difference ); 2381 2381 2382 // Update this topic id's hidde rreply count2382 // Update this topic id's hidden reply count 2383 2383 update_post_meta( $topic_id, '_bbp_reply_count_hidden', $new_count ); 2384 2384
Note: See TracChangeset
for help on using the changeset viewer.