[buddypress-trac] [BuddyPress Trac] #6506: Should not try to redirect in bp_has_message_threads

buddypress-trac noreply at wordpress.org
Mon Jun 15 18:54:42 UTC 2015


#6506: Should not try to redirect in bp_has_message_threads
-----------------------------------+------------------
 Reporter:  johnjamesjacoby        |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  2.4
Component:  Component - Messaging  |     Version:  1.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch              |
-----------------------------------+------------------

Comment (by johnjamesjacoby):

 [https://buddypress.trac.wordpress.org/attachment/ticket/6506/6506.03.patch
 6506.03.patch] is a little polluted with extra changes, but you'll get the
 gist:

 * Remove the direct in `bp_has_message_threads()` and put no restrictions
 in it's place
 * Remove the superfluous capability check in `bp_current_user_can()`
 * Rejig the default parameters of `bp_has_message_threads()` to make their
 calculations a bit more obvious

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


More information about the buddypress-trac mailing list