Changeset 4783 for trunk/includes/users/functions.php
- Timestamp:
- 02/28/2013 05:15:01 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/users/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/users/functions.php
r4715 r4783 859 859 * @uses wpdb::get_blog_prefix() To get the blog prefix 860 860 * @uses is_network_admin() To check if the user is the network admin 861 * @uses is_super_admin() To check if the user is super admin862 861 * @uses revoke_super_admin() To revoke super admin priviledges 863 862 * @uses grant_super_admin() To grant super admin priviledges … … 1093 1092 * 1094 1093 * @uses is_user_logged_in() To check if user is logged in 1095 * @uses is_super_admin() To check if user is a super admin1094 * @uses bbp_is_user_keymaster() To check if user is a keymaster 1096 1095 * @uses current_user_can() To check if the current user can spectate 1097 1096 * @uses is_bbpress() To check if in a bbPress section of the site … … 1100 1099 function bbp_forum_enforce_blocked() { 1101 1100 1102 // Bail if not logged in or super admin1103 if ( ! is_user_logged_in() || is_super_admin() ) {1101 // Bail if not logged in or keymaster 1102 if ( ! is_user_logged_in() || bbp_is_user_keymaster() ) { 1104 1103 return; 1105 1104 }
Note: See TracChangeset
for help on using the changeset viewer.