[buddypress-trac] [BuddyPress] #3971: Private messaging sends to multiple users automatically

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Jun 28 00:45:47 UTC 2012


#3971: Private messaging sends to multiple users automatically
--------------------------------+-----------------------------
 Reporter:  minminloveislonely  |       Owner:  DJPaul
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:  Future Release
Component:  Messaging           |     Version:  1.5.6
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |
--------------------------------+-----------------------------
Changes (by minminloveislonely):

 * version:  1.5.3 => 1.5.6


Comment:

 Replying to [comment:22 boonebgorges]:
 > Good - that confirms that it's definitely a display issue.
 >
 > Now for the real digging :) In the plugin files, open `buddypress/bp-
 messages/bp-messages-template.php`. Look for the function
 `bp_thread_has_messages()`, which should start around line 774:
 https://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-messages/bp-
 messages-template.php#L716 Put a new line right above the final line in
 the plugin, so that it looks like this:
 >
 > {{{
 > $thread_template = new BP_Messages_Thread_Template( $thread_id, $order
 );
 > print_r( $thread_template->thread->recipients );
 > return $thread_template->has_messages();
 > }}}
 >
 > (the print_r() line is the new one). Then open one of the problematic
 threads in the browser, and take note of what's printed on the screen. You
 might find it a bit easier to read if you turn that print_r() line into
 the following:
 >
 > {{{
 > echo '<pre>'; print_r( $thread_template->thread->recipients ); echo
 '</pre>';
 > }}}
 >
 > Who is in the list? Are you seeing the "random" member, in addition to
 the legitimate recipients? Depending on your answer to this, we can do
 another level of digging.

 Yes, I see the "random" member in addition to the legitimate recipients
 :-)

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3971#comment:23>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list