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/admin/topics.php

    r6424 r6438  
    840840     */
    841841    private function get_allowed_notice_toggles() {
    842         return apply_filters( 'bbp_admin_topics_allowed_notice_toggles', array(
     842
     843        // Filter & return
     844        return (array) apply_filters( 'bbp_admin_topics_allowed_notice_toggles', array(
    843845            'opened',
    844846            'closed',
     
    861863     */
    862864    private function get_allowed_action_toggles() {
    863         return apply_filters( 'bbp_admin_topics_allowed_action_toggles', array(
     865
     866        // Filter & return
     867        return (array) apply_filters( 'bbp_admin_topics_allowed_action_toggles', array(
    864868            'bbp_toggle_topic_close',
    865869            'bbp_toggle_topic_stick',
     
    891895        );
    892896
    893         return apply_filters( 'bbp_admin_topics_column_headers', $columns );
     897        // Filter & return
     898        return (array) apply_filters( 'bbp_admin_topics_column_headers', $columns );
    894899    }
    895900
Note: See TracChangeset for help on using the changeset viewer.