Changeset 2744
- Timestamp:
- 03/14/2016 01:58:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-rosetta-roles/wporg-gp-rosetta-roles.php
r2275 r2744 179 179 } 180 180 181 $is_approver = in_array( self::TRANSLATION_EDITOR_ROLE, $user->$cap_key ) || in_array( self::GENERAL_TRANSLATION_EDITOR_ROLE, $user->$cap_key ); 181 $capabilities = $user->{$cap_key}; 182 $is_approver = ! empty( $capabilities[ self::TRANSLATION_EDITOR_ROLE ] ) || ! empty( $capabilities[ self::GENERAL_TRANSLATION_EDITOR_ROLE ] ); 182 183 $cache[ $user_id ][ $locale_slug ] = $is_approver; 183 184
Note: See TracChangeset
for help on using the changeset viewer.