[buddypress-trac] [BuddyPress Trac] #4988: bp_has_activities to accept multi scope

buddypress-trac noreply at wordpress.org
Tue Dec 23 17:36:06 UTC 2014

#4988: bp_has_activities to accept multi scope
 Reporter:  henrywright       |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  2.2
Component:  Activity          |     Version:  1.2
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |

Comment (by r-a-y):

 In [changeset:"9263"]:
 #!CommitTicketReference repository="" revision="9263"
 Add a PHP-agnostic version of `array_replace_recursive()` in

 r9257 implemented the ability to query activity items by multiple scopes.
 `array_replace_recursive()` is a function that is used in the above commit
 to help override certain arguments in the activity loop by scopes.
 However, `array_replace_recursive()` is a PHP 5.3 function and BuddyPress
 WordPress) currently supports a minimum version of PHP 5.2.

 This commit adds a PHP-agnostic version of `array_replace_recursive()` for
 internal use by the `BP_Activity_Activity` class.  This helps to avoid
 fatal errors for those using PHP 5.2 and to fix up our unit tests.

 Anti-props r-a-y.

 See #4988.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4988#comment:27>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list