diff --git a/src/bp-notifications/bp-notifications-template.php b/src/bp-notifications/bp-notifications-template.php
index f9055ba..58f9ab2 100644
|
a
|
b
|
function bp_has_notifications( $args = '' ) { |
| 215 | 215 | * Filters whether or not the user has notifications to display. |
| 216 | 216 | * |
| 217 | 217 | * @since 1.9.0 |
| | 218 | * @since 2.6.0 Added the `$r` parameter. |
| 218 | 219 | * |
| 219 | 220 | * @param bool $value Whether or not there are notifications to display. |
| 220 | 221 | * @param BP_Notifications_Template $query_loop BP_Notifications_Template object instance. |
| | 222 | * @param array $r Array of arguments passed into the BP_Notifications_Template class. |
| 221 | 223 | */ |
| 222 | | return apply_filters( 'bp_has_notifications', $query_loop->has_notifications(), $query_loop ); |
| | 224 | return apply_filters( 'bp_has_notifications', $query_loop->has_notifications(), $query_loop, $r ); |
| 223 | 225 | } |
| 224 | 226 | |
| 225 | 227 | /** |
| … |
… |
function bp_the_notification_action_links( $args = '' ) { |
| 826 | 828 | * Filters the action links for the current notification. |
| 827 | 829 | * |
| 828 | 830 | * @since 1.9.0 |
| | 831 | * @since 2.6.0 Added the `$r` parameter. |
| 829 | 832 | * |
| 830 | 833 | * @param string $retval HTML links for actions to take on single notifications. |
| | 834 | * @param array $r Array of parsed arguments. |
| 831 | 835 | */ |
| 832 | | return apply_filters( 'bp_get_the_notification_action_links', $retval ); |
| | 836 | return apply_filters( 'bp_get_the_notification_action_links', $retval, $r ); |
| 833 | 837 | } |
| 834 | 838 | |
| 835 | 839 | /** |
| … |
… |
function bp_notifications_sort_order_form() { |
| 911 | 915 | $selected = 'DESC'; |
| 912 | 916 | |
| 913 | 917 | // Check for a custom sort_order. |
| 914 | | if ( !empty( $_REQUEST['sort_order'] ) ) { |
| | 918 | if ( ! empty( $_REQUEST['sort_order'] ) ) { |
| 915 | 919 | if ( in_array( $_REQUEST['sort_order'], $orders ) ) { |
| 916 | 920 | $selected = $_REQUEST['sort_order']; |
| 917 | 921 | } |
| … |
… |
function bp_notifications_sort_order_form() { |
| 929 | 933 | <input id="submit" type="submit" name="form-submit" class="submit" value="<?php esc_attr_e( 'Go', 'buddypress' ); ?>" /> |
| 930 | 934 | </noscript> |
| 931 | 935 | </form> |
| 932 | | |
| 933 | | <?php |
| | 936 | <?php |
| 934 | 937 | } |
| 935 | 938 | |
| 936 | 939 | /** |