[buddypress-trac] [BuddyPress Trac] #6063: Support meta query in bp_has_message_threads()

buddypress-trac noreply at wordpress.org
Fri Jan 9 19:24:03 UTC 2015


#6063: Support meta query in bp_has_message_threads()
-------------------------+------------------
 Reporter:  r-a-y        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.2
Component:  Messaging    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by r-a-y):

 In [changeset:"9331"]:
 {{{
 #!CommitTicketReference repository="" revision="9331"
 Messages: Do not duplicate SQL statements in
 `BP_Messages_Thread::get_current_threads_for_user()`

 Previously, to query the thread IDs and the total threads, two separate
 SQL
 statements were generated.  Both of these statements are almost identical.
 Therefore, this commit uses an array to house the SQL clauses, which is
 later adjusted in the total thread query.

 See #6063.
 }}}

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


More information about the buddypress-trac mailing list