Skip to:
Content

bbPress.org

Changeset 6787


Ignore:
Timestamp:
03/26/2018 03:39:40 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Links: Add $cap to bbp_get_view_all filter. See #3195.

File:
1 edited

Legend:

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

    r6786 r6787  
    7676 * @since 2.0.0 bbPress (r3325)
    7777 *
     78 * @param string $cap Capability used to ensure user can view all
     79 *
    7880 * @return bool Whether current user can and is viewing all
    7981 */
     
    8284
    8385    // Filter & return
    84     return apply_filters( 'bbp_get_view_all', (bool) $retval );
     86    return (bool) apply_filters( 'bbp_get_view_all', (bool) $retval, $cap );
    8587}
    8688
Note: See TracChangeset for help on using the changeset viewer.