Skip to:
Content

BuddyPress.org

Changeset 9989


Ignore:
Timestamp:
07/02/2015 07:45:51 PM (9 years ago)
Author:
boonebgorges
Message:

Remove redundant ternary from bp_user_has_access().

Also adds tests for the function.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r9967 r9989  
    13871387
    13881388function bp_user_has_access() {
    1389     $has_access = ( bp_current_user_can( 'bp_moderate' ) || bp_is_my_profile() )
    1390         ? true
    1391         : false;
     1389    $has_access = bp_current_user_can( 'bp_moderate' ) || bp_is_my_profile();
    13921390
    13931391    /**
Note: See TracChangeset for help on using the changeset viewer.