Skip to:
Content

BuddyPress.org

Ticket #8185: 8185.diff

File 8185.diff, 665 bytes (added by sbrajesh, 4 years ago)

Add $data as the 3rd parameter.

  • src/bp-core/bp-core-attachments.php

     
    483483         *                              Defaults to 'cover-image'
    484484         *     @type string $file       The name of the file.
    485485         * }
     486         *
     487         * @param string $data type of data to fetch(url or path).
    486488         */
    487         $pre_filter = apply_filters( 'bp_attachments_pre_get_attachment', null, $r );
     489        $pre_filter = apply_filters( 'bp_attachments_pre_get_attachment', null, $r, $data );
    488490        if ( $pre_filter !== null ) {
    489491                return $pre_filter;
    490492        }