Changeset 4363 for trunk/includes/core/template-functions.php
- Timestamp:
- 11/08/2012 10:24:15 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/core/template-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/template-functions.php
r4327 r4363 317 317 } 318 318 319 // C reate new user320 $ user = get_userdata( $bbp_user );321 322 // 404 and bail if no user found, is inactive, or not a member323 if ( empty( $user ) || ! is_user_member_of_blog( $user->ID ) || ( ! is_super_admin() && bbp_is_user_inactive( $user->ID )) ) {319 // Cast as int, just in case 320 $bbp_user = (int) $bbp_user; 321 322 // 404 and bail if user does not have a profile 323 if ( ! bbp_user_has_profile( $bbp_user ) ) { 324 324 $posts_query->set_404(); 325 325 return; … … 386 386 // Correct is_home variable 387 387 $posts_query->is_home = false; 388 389 // Get the user data 390 $user = get_userdata( $bbp_user ); 388 391 389 392 // User is looking at their own profile
Note: See TracChangeset
for help on using the changeset viewer.