Changeset 3192 for branches/1.2/bp-xprofile.php
- Timestamp:
- 08/15/2010 04:43:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-xprofile.php
r3186 r3192 132 132 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() 133 133 * @global $wpdb WordPress DB access object. 134 * @uses is_s ite_admin() returns true if the current user is a site admin, false if not134 * @uses is_super_admin() returns true if the current user is a site admin, false if not 135 135 * @uses bp_xprofile_install() runs the installation of DB tables for the xprofile component 136 136 * @uses wp_enqueue_script() Adds a JS file to the JS queue ready for output … … 142 142 global $wpdb, $bp; 143 143 144 if ( !is_s ite_admin() )144 if ( !is_super_admin() ) 145 145 return false; 146 146 … … 207 207 208 208 /* Don't show this menu to non site admins or if you're viewing your own profile */ 209 if ( !is_s ite_admin() || bp_is_my_profile() )209 if ( !is_super_admin() || bp_is_my_profile() ) 210 210 return false; 211 211 ?> … … 268 268 global $bp; 269 269 270 if ( !bp_is_my_profile() && !is_s ite_admin() )270 if ( !bp_is_my_profile() && !is_super_admin() ) 271 271 return false; 272 272 … … 358 358 global $bp; 359 359 360 if ( !bp_is_my_profile() && !is_s ite_admin() )360 if ( !bp_is_my_profile() && !is_super_admin() ) 361 361 return false; 362 362 … … 427 427 check_admin_referer( 'bp_delete_avatar_link' ); 428 428 429 if ( !bp_is_my_profile() && !is_s ite_admin() )429 if ( !bp_is_my_profile() && !is_super_admin() ) 430 430 return false; 431 431
Note: See TracChangeset
for help on using the changeset viewer.