- Timestamp:
- 04/21/2016 07:44:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-template.php
r10652 r10715 168 168 } else { 169 169 $user_id = bp_loggedin_user_id(); 170 } 171 172 // Set the component action (by default false to get all actions) 173 $component_action = false; 174 175 if ( isset( $_REQUEST['type'] ) ) { 176 $component_action = sanitize_key( $_REQUEST['type'] ); 177 } 178 179 // Set the search terms (by default an empty string to get all notifications) 180 $search_terms = ''; 181 182 if ( isset( $_REQUEST['s'] ) ) { 183 $search_terms = stripslashes( $_REQUEST['s'] ); 170 184 } 171 185 … … 176 190 'secondary_item_id' => false, 177 191 'component_name' => bp_notifications_get_registered_components(), 178 'component_action' => false,192 'component_action' => $component_action, 179 193 'is_new' => $is_new, 180 'search_terms' => isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '',194 'search_terms' => $search_terms, 181 195 'order_by' => 'date_notified', 182 196 'sort_order' => 'DESC',
Note: See TracChangeset
for help on using the changeset viewer.