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/users/options.php

    r6359 r6438  
    2020function bbp_get_default_user_options() {
    2121
    22     // Default options
    23     return apply_filters( 'bbp_get_default_user_options', array(
     22    // Filter & return
     23    return (array) apply_filters( 'bbp_get_default_user_options', array(
    2424        '_bbp_last_posted' => '0', // For checking flooding
    2525        '_bbp_topic_count' => '0', // Total topics per site
     
    225225            : 'bbp_get_user_topic_count';
    226226
     227        // Filter & return
    227228        return apply_filters( $filter, $count, $user_id );
    228229    }
     
    369370        $time = get_user_option( '_bbp_last_posted', $user_id );
    370371
     372        // Filter & return
    371373        return apply_filters( 'bbp_get_user_last_posted', $time, $user_id );
    372374    }
Note: See TracChangeset for help on using the changeset viewer.