Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2017 11:12:37 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: Updates existing functions & unit tests:

  • Correct tests so that post_author of 0 does not get included in the overall count
  • Add user IDs to all topics & replies where voice counts are being tested
  • Update voice-count update function to use the new user-relationships API
  • Clean-up topic merge code to more efficiently migrate favorites, subscriptions, and engagements

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r6318 r6330  
    10191019                bbp_update_topic_last_active_time( $ancestor, $topic_last_active_time );
    10201020
     1021                // Always update voice counts
     1022                bbp_update_topic_voice_count( $ancestor );
     1023
    10211024                // Only update reply count if we're deleting a reply, or in the dashboard.
    10221025                if ( in_array( current_filter(), array( 'bbp_deleted_reply', 'save_post' ), true ) ) {
    10231026                    bbp_update_topic_reply_count(        $ancestor );
    10241027                    bbp_update_topic_reply_count_hidden( $ancestor );
    1025                     bbp_update_topic_voice_count(        $ancestor );
    10261028                }
    10271029
Note: See TracChangeset for help on using the changeset viewer.