[buddypress-trac] [BuddyPress Trac] #5922: Private Message Sent-to dropdown broken

buddypress-trac noreply at wordpress.org
Fri Oct 3 15:01:33 UTC 2014


#5922: Private Message Sent-to dropdown broken
--------------------------+------------------------------
 Reporter:  SeeingBlueS2  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Messaging     |     Version:  2.1
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+------------------------------
Changes (by boonebgorges):

 * keywords:   => dev-feedback
 * severity:  major => normal


Comment:

 Bingo. That's the issue.

 The default behavior for the Messages autocomplete is to return results
 for Friends only.
 https://buddypress.trac.wordpress.org/browser/tags/2.1/src/bp-templates
 /bp-legacy/buddypress-functions.php#L1405 However, this results in an
 error when the Friends component is disabled
 https://buddypress.trac.wordpress.org/browser/tags/2.1/src/bp-core/bp-
 core-classes.php#L2649

 SeeingBlueS2, for your purposes, the workaround is to manually set
 autocomplete to "all" instead of "friends". Put the following line in your
 wp-config.php, anywhere above the "That's it" line:

 {{{
 define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );
 }}}

 DJPaul and other devs - The better end-user experience here may be to
 default to autocomplete_all when Friends is disabled. However, this has
 potential privacy issues (should you be able to guess at other site
 members?) and potential scaling issues (autocomplete_all will not perform
 well with many thousands of users). Do you think we should do anything
 about this?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5922#comment:14>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list