Skip to:
Content

bbPress.org

Changeset 5923


Ignore:
Timestamp:
08/16/2015 12:30:09 PM (9 years ago)
Author:
netweb
Message:

Forums: Improve type-casting in forum functions.

Props thebrandonallen. See #2801.

File:
1 edited

Legend:

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

    r5918 r5923  
    20502050    $topic_ids = bbp_get_public_child_ids( $forum_id, bbp_get_topic_post_type() );
    20512051
    2052     return apply_filters( 'bbp_forum_query_topic_ids', $topic_ids, $forum_id );
     2052    return (array) apply_filters( 'bbp_forum_query_topic_ids', $topic_ids, $forum_id );
    20532053}
    20542054
     
    20702070    //usort( $subforum_ids, '_bbp_forum_query_usort_subforum_ids' );
    20712071
    2072     return apply_filters( 'bbp_forum_query_subforum_ids', $subforum_ids, $forum_id );
     2072    return (array) apply_filters( 'bbp_forum_query_subforum_ids', $subforum_ids, $forum_id );
    20732073}
    20742074
Note: See TracChangeset for help on using the changeset viewer.