Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/03/2017 03:47:24 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Core: General core function clean-up.

Mostly odds & ends, formatting, type-casting, etc...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/theme-compat.php

    r6342 r6353  
    10061006
    10071007    // Default return value is what is passed in $open
    1008     $retval = $open;
     1008    $retval = (bool) $open;
    10091009
    10101010    // Only force for bbPress post types
     
    10181018
    10191019    // Allow override of the override
    1020     return apply_filters( 'bbp_force_comment_status', $retval, $open, $post_id, $post_type );
    1021 }
     1020    return (bool) apply_filters( 'bbp_force_comment_status', $retval, $open, $post_id, $post_type );
     1021}
Note: See TracChangeset for help on using the changeset viewer.