Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2017 05:04:31 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tools: Add //Filter & return note for future discovery of missing filter documentation.

Also adjust some type-casting on filtered results.

File:
1 edited

Legend:

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

    r6353 r6438  
    284284        : false;
    285285
     286    // Filter & return
    286287    return apply_filters( 'bbp_get_view_query_args', $retval, $view );
    287288}
     
    337338 */
    338339function bbp_find_mentions_pattern() {
     340
     341    // Filter & return
    339342    return apply_filters( 'bbp_find_mentions_pattern', '/[@]+([A-Za-z0-9-_\.@]+)\b/' );
    340343}
     
    359362    }
    360363
     364    // Filter & return
    361365    return apply_filters( 'bbp_find_mentions', $usernames, $pattern, $content );
    362366}
Note: See TracChangeset for help on using the changeset viewer.