Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/04/2017 09:24:35 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Sub-actions: Cast a few return values and add @return phpdoc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/sub-actions.php

    r6438 r6479  
    524524 * @param array $themes
    525525 * @uses apply_filters() Calls 'bbp_allowed_themes' with the allowed themes list
     526 *
     527 * @return array Array of allowed themes
    526528 */
    527529function bbp_allowed_themes( $themes ) {
    528530
    529531    // Filter & return
    530     return apply_filters( 'bbp_allowed_themes', $themes );
     532    return (array) apply_filters( 'bbp_allowed_themes', $themes );
    531533}
    532534
     
    540542 * @param int $user_id User id
    541543 * @param array $args Arguments
     544 *
     545 * @return array Array of capabilities
    542546 */
    543547function bbp_map_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {
    544548
    545549    // Filter & return
    546     return apply_filters( 'bbp_map_meta_caps', $caps, $cap, $user_id, $args );
    547 }
     550    return (array) apply_filters( 'bbp_map_meta_caps', $caps, $cap, $user_id, $args );
     551}
Note: See TracChangeset for help on using the changeset viewer.