Skip to:
Content

bbPress.org

Changeset 4291


Ignore:
Timestamp:
11/02/2012 06:36:09 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Tweak phpdoc and cast type on return of bbp_use_advanced_capability_editor().
  • See #1939.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/capabilities.php

    r4290 r4291  
    1818 * Whether or not to show advanced capability editing when editing a user.
    1919 *
    20  * @param type $default
    21  * @return type
     20 * @since bbPress (r4290)
     21 *
     22 * @param bool $default
     23 * @return bool
    2224 */
    2325function bbp_use_advanced_capability_editor( $default = false ) {
    24     return apply_filters( 'bbp_use_advanced_capability_editor', $default );
     26    return (bool) apply_filters( 'bbp_use_advanced_capability_editor', $default );
    2527}
    2628
Note: See TracChangeset for help on using the changeset viewer.