Changeset 6534 for trunk/src/includes/forums/functions.php
- Timestamp:
- 06/12/2017 09:23:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r6529 r6534 1205 1205 $forum_id = bbp_get_topic_forum_id( $topic_id ); 1206 1206 1207 // If this is a new, unpublished, topic, increase hidden count and bail.1208 if ( 'bbp_new_topic' === current_filter() && ( ! bbp_is_topic_published( $topic_id ) && ! bbp_is_topic_closed( $topic_id )) ) {1207 // Bail if not public. 1208 if ( ! bbp_is_topic_public( $topic_id ) ) { 1209 1209 bbp_increase_forum_topic_count_hidden( $forum_id ); 1210 1210 return; … … 1419 1419 // If it's a reply, get the forum id. 1420 1420 if ( bbp_is_reply( $forum_id ) ) { 1421 $reply_id = $forum_id; 1422 $forum_id = bbp_get_reply_forum_id( $reply_id ); 1423 1424 // Don't update if this is a new, unpublished, reply. 1425 if ( 'bbp_new_reply' === current_filter() && ! bbp_is_reply_published( $reply_id ) ) { 1426 return; 1427 } 1421 $forum_id = bbp_get_reply_forum_id( $forum_id ); 1428 1422 } 1429 1423
Note: See TracChangeset
for help on using the changeset viewer.