Changeset 6848 for trunk/src/includes/replies/functions.php
- Timestamp:
- 08/09/2018 07:53:28 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r6826 r6848 99 99 if ( bbp_is_reply_published( $reply_id ) ) { 100 100 bbp_increase_topic_reply_count( $topic_id ); 101 bbp_increase_forum_reply_count( $ reply_id );101 bbp_increase_forum_reply_count( $forum_id ); 102 102 103 103 // If the reply isn't public only update the topic reply hidden count. … … 856 856 bbp_update_reply_walker( $reply_id, $last_active_time, $forum_id, $topic_id, false ); 857 857 } 858 859 // Bump the custom query cache 860 wp_cache_set( 'last_changed', microtime(), 'bbpress_posts' ); 858 861 } 859 862 … … 1002 1005 1003 1006 // Update the forum ID 1004 $ forum_id= bbp_update_forum_id( $reply_id, $forum_id );1007 $retval = bbp_update_forum_id( $reply_id, $forum_id ); 1005 1008 1006 1009 // Filter & return 1007 return (int) apply_filters( 'bbp_update_reply_forum_id', $ forum_id, $reply_id );1010 return (int) apply_filters( 'bbp_update_reply_forum_id', $retval, $reply_id, $forum_id ); 1008 1011 } 1009 1012 … … 1045 1048 1046 1049 // Update the topic ID 1047 $ topic_id= bbp_update_topic_id( $reply_id, $topic_id );1050 $retval = bbp_update_topic_id( $reply_id, $topic_id ); 1048 1051 1049 1052 // Filter & return 1050 return (int) apply_filters( 'bbp_update_reply_topic_id', $ topic_id, $reply_id );1053 return (int) apply_filters( 'bbp_update_reply_topic_id', $retval, $reply_id, $topic_id ); 1051 1054 } 1052 1055
Note: See TracChangeset
for help on using the changeset viewer.