[buddypress-trac] [BuddyPress Trac] #9270: Returns false when it should return an empty array.

buddypress-trac noreply at wordpress.org
Fri Dec 19 19:39:12 UTC 2025


#9270: Returns false when it should return an empty array.
----------------------------+--------------------------
 Reporter:  alexanderwbell  |       Owner:  espellcaste
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  15.0.0
Component:  Activity        |     Version:  14.3.2
 Severity:  minor           |  Resolution:  fixed
 Keywords:  has-patch       |
----------------------------+--------------------------
Changes (by espellcaste):

 * owner:  (none) => espellcaste
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"14160" 14160]:
 {{{
 #!CommitTicketReference repository="" revision="14160"
 Return an empty `array` (instead of `false`) when
 `BP_Activity_Activity::get_activity_comments` has no comments.

 Previously, the method would return a boolean `false` when there was no
 cached comments. The `false` had meaning before, see [13312]. But it got
 changed at [13312].

 Props alexanderwbell.

 Closes https://github.com/buddypress/buddypress/pull/405
 Fixes #9270.
 }}}

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


More information about the buddypress-trac mailing list