Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2015 10:59:18 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Messages: Modify message thread queries to exclude messages in deleted threads from "Starred" messages.

This change ensures that deleted messages do not appear in the "Starred" section of a member's private messages. Previously, it was possible to delete a private message thread, and still have it come back to life in the "Starred" messages section.

Fixes #6483. Props r-a-y. (trunk, for 2.4.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-star.php

    r9932 r9951  
    351351 */
    352352function bp_messages_filter_starred_message_threads( $r = array() ) {
    353     $r['user_id'] = 0;
     353    $r['box'] = 'starred';
    354354    $r['meta_query'] = array( array(
    355355        'key'   => 'starred_by_user',
    356         'value' => bp_loggedin_user_id()
     356        'value' => $r['user_id']
    357357    ) );
    358358
Note: See TracChangeset for help on using the changeset viewer.