Skip to:
Content

bbPress.org

Changeset 6487


Ignore:
Timestamp:
06/04/2017 10:04:34 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Filters: Pass original $args array into various filters.

These were all unintentionally omitted when these filters were introduced.

Location:
trunk/src/includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6481 r6487  
    462462
    463463    // Filter & return
    464     return apply_filters( 'bbp_get_statistics', $statistics, $r );
     464    return apply_filters( 'bbp_get_statistics', $statistics, $r, $args );
    465465}
    466466
  • trunk/src/includes/common/template.php

    r6486 r6487  
    26112611
    26122612        // Filter & return
    2613         return apply_filters( 'bbp_get_breadcrumb', $trail, $crumbs, $r );
     2613        return apply_filters( 'bbp_get_breadcrumb', $trail, $crumbs, $r, $args );
    26142614    }
    26152615
  • trunk/src/includes/replies/template.php

    r6438 r6487  
    13611361
    13621362        // Filter & return
    1363         return apply_filters( 'bbp_get_reply_author_link', $author_link, $r );
     1363        return apply_filters( 'bbp_get_reply_author_link', $author_link, $r, $args );
    13641364    }
    13651365
     
    15111511
    15121512        // Filter & return
    1513         return apply_filters( 'bbp_get_reply_author_role', $author_role, $r );
     1513        return apply_filters( 'bbp_get_reply_author_role', $author_role, $r, $args );
    15141514    }
    15151515
     
    29512951
    29522952        // Filter & return
    2953         return apply_filters( 'bbp_get_form_reply_status_dropdown', ob_get_clean(), $r );
     2953        return apply_filters( 'bbp_get_form_reply_status_dropdown', ob_get_clean(), $r, $args );
    29542954    }
    29552955
  • trunk/src/includes/users/template.php

    r6438 r6487  
    536536
    537537        // Filter & return
    538         return (string) apply_filters( 'bbp_get_user_nicename', $retval, $user_id, $r );
     538        return (string) apply_filters( 'bbp_get_user_nicename', $retval, $user_id, $r, $args );
    539539    }
    540540
     
    800800
    801801        // Filter & return
    802         return apply_filters( 'bbp_get_admin_link', $retval, $r );
     802        return apply_filters( 'bbp_get_admin_link', $retval, $r, $args );
    803803    }
    804804
     
    848848
    849849        // Filter & return
    850         return apply_filters( 'bbp_get_author_ip', $author_ip, $r );
     850        return apply_filters( 'bbp_get_author_ip', $author_ip, $r, $args );
    851851    }
    852852
Note: See TracChangeset for help on using the changeset viewer.