Changeset 6848 for trunk/src/includes/topics/functions.php
- Timestamp:
- 08/09/2018 07:53:28 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r6827 r6848 833 833 bbp_update_topic_walker( $topic_id, $last_active, $forum_id, 0, false ); 834 834 } 835 836 // Bump the custom query cache 837 wp_cache_set( 'last_changed', microtime(), 'bbpress_posts' ); 835 838 } 836 839 … … 888 891 if ( bbp_is_forum( $ancestor ) ) { 889 892 893 // Get the forum 894 $forum = bbp_get_forum( $ancestor ); 895 890 896 // Update the forum 891 897 bbp_update_forum( array( 892 'forum_id' => $ancestor, 898 'forum_id' => $forum->ID, 899 'post_parent' => $forum->post_parent, 893 900 'last_topic_id' => $topic_id, 894 901 'last_reply_id' => $reply_id, … … 984 991 985 992 // Get reply count. 986 $public_reply_count = count( bbp_get_public_child_ids( $topic_id, bbp_get_reply_post_type()) );993 $public_reply_count = bbp_get_public_child_count( $topic_id, bbp_get_reply_post_type() ); 987 994 988 995 // Topic status.
Note: See TracChangeset
for help on using the changeset viewer.