Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/23/2013 05:45:16 PM (11 years ago)
Author:
johnjamesjacoby
Message:

First pass at extracting registered Notifications callbacks into a helper function. More to do here. See #5300.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-classes.php

    r7709 r7711  
    554554            'item_id'           => false,
    555555            'secondary_item_id' => false,
    556             'component_name'    => array_keys( buddypress()->active_components ),
     556            'component_name'    => bp_notifications_get_registered_components(),
    557557            'component_action'  => false,
    558558            'is_new'            => true,
     
    613613        global $wpdb;
    614614
    615         // Load BuddyPress
    616         $bp = buddypress();
    617 
    618615        /**
    619616         * Default component_name to active_components
     
    621618         * @see http://buddypress.trac.wordpress.org/ticket/5300
    622619         */
    623         $args = wp_parse_args( $args, array( 'component_name' => array_keys( $bp->active_components ) ) );
     620        $args = wp_parse_args( $args, array(
     621            'component_name' => bp_notifications_get_registered_components()
     622        ) );
     623
     624        // Load BuddyPress
     625        $bp = buddypress();
    624626
    625627        // Build the query
Note: See TracChangeset for help on using the changeset viewer.