Skip to:
Content

BuddyPress.org

Ticket #5687: 5687.experimental.patch

File 5687.experimental.patch, 732 bytes (added by imath, 12 years ago)
  • src/bp-activity/bp-activity-template.php

    diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
    index cad209f..8fafdb0 100644
    function bp_has_activities( $args = '' ) {  
    632632                                        break;
    633633                        }
    634634                }
     635        } else if ( ! empty( $scope ) ) {
     636                $custom_scope_args = apply_filters( 'bp_activity_custom_scope_args', array(
     637                        'object'       => $scope,
     638                        'user_id'      => $user_id,
     639                        'action'       => $action,
     640                        'primary_id'   => $primary_id,
     641                        'secondary_id' => $secondary_id,
     642                        'offset'       => $offset,
     643                        'since'        => $since
     644                ) );
     645
     646                extract( $custom_scope_args );
    635647        }
    636648
    637649        // Do not exceed the maximum per page