Changeset 5918 for trunk/src/includes/forums/functions.php
- Timestamp:
- 08/16/2015 06:45:32 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/forums/functions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r5908 r5918 1253 1253 * Update the forum last topic id 1254 1254 * 1255 * @since bbPress (r2625)1256 * 1257 * @param int $forum_id Optional. Forum id 1258 * @param int $topic_id Optional. Topic id 1255 * @since 2.0.0 bbPress (r2625) 1256 * 1257 * @param int $forum_id Optional. Forum id. 1258 * @param int $topic_id Optional. Topic id. 1259 1259 * @uses bbp_get_forum_id() To get the forum id 1260 1260 * @uses bbp_forum_query_subforum_ids() To get the subforum ids 1261 1261 * @uses bbp_update_forum_last_topic_id() To update the last topic id of child 1262 1262 * forums 1263 * @uses bbp_get_topic_post_type() To get the topic post type 1263 1264 * @uses get_posts() To get the most recent topic in the forum 1265 * @uses bbp_is_topic_published() To check if the topic is published 1264 1266 * @uses update_post_meta() To update the forum's last active id meta 1265 1267 * @uses apply_filters() Calls 'bbp_update_forum_last_topic_id' with the last 1266 * replyid and forum id1267 * @return bool True on success, false on failure1268 * topic id and forum id 1269 * @return int Id of the forums most recent topic 1268 1270 */ 1269 1271 function bbp_update_forum_last_topic_id( $forum_id = 0, $topic_id = 0 ) { … … 1321 1323 * Update the forum last reply id 1322 1324 * 1323 * @since bbPress (r2625)1324 * 1325 * @param int $forum_id Optional. Forum id 1326 * @param int $reply_id Optional. Reply id 1325 * @since 2.0.0 bbPress (r2625) 1326 * 1327 * @param int $forum_id Optional. Forum id. 1328 * @param int $reply_id Optional. Reply id. 1327 1329 * @uses bbp_get_forum_id() To get the forum id 1328 1330 * @uses bbp_forum_query_subforum_ids() To get the subforum ids … … 1335 1337 * @uses apply_filters() Calls 'bbp_update_forum_last_reply_id' with the last 1336 1338 * reply id and forum id 1337 * @return bool True on success, false on failure1339 * @return int Id of the forums most recent reply 1338 1340 */ 1339 1341 function bbp_update_forum_last_reply_id( $forum_id = 0, $reply_id = 0 ) { … … 1386 1388 * Update the forum last active post id 1387 1389 * 1388 * @since bbPress (r2860)1389 * 1390 * @param int $forum_id Optional. Forum id 1391 * @param int $active_id Optional. Active post id 1390 * @since 2.0.0 bbPress (r2860) 1391 * 1392 * @param int $forum_id Optional. Forum id. 1393 * @param int $active_id Optional. Active post id. 1392 1394 * @uses bbp_get_forum_id() To get the forum id 1393 1395 * @uses bbp_forum_query_subforum_ids() To get the subforum ids … … 1396 1398 * @uses bbp_forum_query_topic_ids() To get the topic ids in the forum 1397 1399 * @uses bbp_forum_query_last_reply_id() To get the forum's last reply id 1400 * @uses bbp_get_public_status_id() To get the public status id 1398 1401 * @uses get_post_status() To make sure the reply is published 1399 1402 * @uses update_post_meta() To update the forum's last active id meta 1400 1403 * @uses apply_filters() Calls 'bbp_update_forum_last_active_id' with the last 1401 1404 * active post id and forum id 1402 * @return bool True on success, false on failure1405 * @return int Id of the forums last active post 1403 1406 */ 1404 1407 function bbp_update_forum_last_active_id( $forum_id = 0, $active_id = 0 ) { … … 1452 1455 * Update the forums last active date/time (aka freshness) 1453 1456 * 1454 * @since bbPress (r2680)1455 * 1456 * @param int $forum_id Optional. Topic id1457 * @param string $new_time Optional. New time in mysql format 1457 * @since 2.0.0 bbPress (r2680) 1458 * 1459 * @param int $forum_id Optional. Topic id. 1460 * @param string $new_time Optional. New time in mysql format. 1458 1461 * @uses bbp_get_forum_id() To get the forum id 1459 1462 * @uses bbp_get_forum_last_active_id() To get the forum's last post id … … 1462 1465 * @uses apply_filters() Calls 'bbp_update_forum_last_active' with the new time 1463 1466 * and forum id 1464 * @return bool True on success, false on failure1467 * @return string MySQL timestamp of last active topic or reply 1465 1468 */ 1466 1469 function bbp_update_forum_last_active_time( $forum_id = 0, $new_time = '' ) { … … 1477 1480 } 1478 1481 1479 return (int)apply_filters( 'bbp_update_forum_last_active', $new_time, $forum_id );1482 return apply_filters( 'bbp_update_forum_last_active', $new_time, $forum_id ); 1480 1483 } 1481 1484
Note: See TracChangeset
for help on using the changeset viewer.