Changeset 2389
- Timestamp:
- 01/21/2010 11:19:32 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r2387 r2389 114 114 115 115 if ( $bp->current_component == $bp->activity->slug ) { 116 if ( bp_is_ home() ) {116 if ( bp_is_my_profile() ) { 117 117 $bp->bp_options_title = __( 'My Activity', 'buddypress' ); 118 118 } else { -
trunk/bp-blogs.php
r2383 r2389 117 117 * @package BuddyPress Blogs 118 118 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() 119 * @uses bp_is_ home() Checks to see if the current user being viewed is the logged in user119 * @uses bp_is_my_profile() Checks to see if the current user being viewed is the logged in user 120 120 */ 121 121 function bp_blogs_setup_nav() { … … 139 139 /* Set up the component options navigation for Blog */ 140 140 if ( 'blogs' == $bp->current_component ) { 141 if ( bp_is_ home() ) {141 if ( bp_is_my_profile() ) { 142 142 if ( function_exists('xprofile_setup_nav') ) { 143 143 $bp->bp_options_title = __('My Blogs', 'buddypress'); -
trunk/bp-blogs/bp-blogs-classes.php
r2324 r2389 115 115 116 116 // Show logged in users their hidden blogs. 117 if ( !bp_is_ home() )117 if ( !bp_is_my_profile() ) 118 118 $blogs = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT b.id, bm1.meta_value as name, bm2.meta_value as description, wb.domain, wb.path FROM {$bp->blogs->table_name} b, {$wpdb->base_prefix}blogs wb, {$bp->blogs->table_name_blogmeta} bm1, {$bp->blogs->table_name_blogmeta} bm2 WHERE b.blog_id = wb.blog_id AND b.blog_id = bm1.blog_id AND b.blog_id = bm2.blog_id AND bm1.meta_key = 'name' AND bm2.meta_key = 'description' AND wb.public = 1 AND wb.deleted = 0 AND wb.spam = 0 AND wb.mature = 0 AND wb.archived = '0' AND b.user_id = %d ", $user_id) ); 119 119 else … … 476 476 477 477 // Show a logged in user their posts on private blogs, but not anyone else. 478 if ( !bp_is_ home() ) {478 if ( !bp_is_my_profile() ) { 479 479 $post_ids = $wpdb->get_results( $wpdb->prepare( "SELECT p.post_id, p.blog_id FROM {$bp->blogs->table_name_blog_posts} p LEFT JOIN {$wpdb->base_prefix}blogs b ON p.blog_id = b.blog_id WHERE b.public = 1 AND b.deleted = 0 AND b.archived = '0' AND b.spam = 0 AND b.mature = 0 AND p.user_id = %d ORDER BY p.date_created DESC", $user_id) ); 480 480 $total_post_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(p.post_id) FROM {$bp->blogs->table_name_blog_posts} p LEFT JOIN {$wpdb->base_prefix}blogs b ON p.blog_id = b.blog_id WHERE b.public = 1 AND b.deleted = 0 AND b.archived = '0' AND b.spam = 0 AND b.mature = 0 AND p.user_id = %d", $user_id) ); … … 670 670 671 671 // Show the logged in user their comments on hidden blogs, but not to anyone else. 672 if ( !bp_is_ home() ) {672 if ( !bp_is_my_profile() ) { 673 673 $comment_ids = $wpdb->get_results( $wpdb->prepare( "SELECT c.comment_id, c.blog_id FROM {$bp->blogs->table_name_blog_comments} c LEFT JOIN {$wpdb->base_prefix}blogs b ON c.blog_id = b.blog_id WHERE b.public = 1 AND b.deleted = 0 AND b.archived = '0' AND b.spam = 0 AND b.mature = 0 AND c.user_id = %d ORDER BY c.date_created ASC", $user_id) ); 674 674 $total_comment_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(c.comment_id) FROM {$bp->blogs->table_name_blog_comments} c LEFT JOIN {$wpdb->base_prefix}blogs b ON c.blog_id = b.blog_id WHERE b.public = 1 AND b.deleted = 0 AND b.archived = '0' AND b.spam = 0 AND b.mature = 0 AND c.user_id = %d", $user_id) ); -
trunk/bp-blogs/bp-blogs-templatetags.php
r2375 r2389 1153 1153 global $bp; 1154 1154 1155 if ( bp_is_ home() ) {1155 if ( bp_is_my_profile() ) { 1156 1156 echo apply_filters( 'bp_create_blog_link', '<a href="' . $bp->loggedin_user->domain . $bp->blogs->slug . '/create-a-blog">' . __('Create a Blog', 'buddypress') . '</a>' ); 1157 1157 } … … 1162 1162 1163 1163 // Don't show these tabs on a user's own profile 1164 if ( bp_is_ home() )1164 if ( bp_is_my_profile() ) 1165 1165 return false; 1166 1166 -
trunk/bp-core.php
r2381 r2389 332 332 * @uses bp_core_new_nav_item() Adds a navigation item to the top level buddypress navigation 333 333 * @uses bp_core_new_subnav_item() Adds a sub navigation item to a nav item 334 * @uses bp_is_ home() Returns true if the current user being viewed is equal the logged in user334 * @uses bp_is_my_profile() Returns true if the current user being viewed is equal the logged in user 335 335 * @uses bp_core_fetch_avatar() Returns the either the thumb or full avatar URL for the user_id passed 336 336 */ … … 369 369 370 370 if ( 'profile' == $bp->current_component ) { 371 if ( bp_is_ home() ) {371 if ( bp_is_my_profile() ) { 372 372 $bp->bp_options_title = __('My Profile', 'buddypress'); 373 373 } else { … … 426 426 global $bp, $wpdb; 427 427 428 if ( !is_site_admin() || bp_is_ home() || !$bp->displayed_user->id )428 if ( !is_site_admin() || bp_is_my_profile() || !$bp->displayed_user->id ) 429 429 return false; 430 430 … … 486 486 global $bp; 487 487 488 if ( !is_site_admin() || bp_is_ home() || !$bp->displayed_user->id )488 if ( !is_site_admin() || bp_is_my_profile() || !$bp->displayed_user->id ) 489 489 return false; 490 490 -
trunk/bp-core/bp-core-settings.php
r2277 r2389 19 19 $settings_link = $bp->loggedin_user->domain . 'settings/'; 20 20 21 bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_is_ home() ) );22 bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_is_ home() ) );21 bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_is_my_profile() ) ); 22 bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_is_my_profile() ) ); 23 23 24 24 if ( !is_site_admin() && !(int) get_site_option( 'bp-disable-account-deletion' ) ) 25 bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_ home() ) );25 bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_my_profile() ) ); 26 26 } 27 27 add_action( 'wp', 'bp_core_add_settings_nav', 2 ); -
trunk/bp-core/bp-core-templatetags.php
r2383 r2389 515 515 * menus for something like a group, or event. 516 516 */ 517 if ( bp_is_ home() || $bp->is_single_item ) {517 if ( bp_is_my_profile() || $bp->is_single_item ) { 518 518 if ( count( $bp->bp_options_nav[$bp->current_component] ) < 1 ) 519 519 return false; -
trunk/bp-friends.php
r2381 r2389 73 73 /* Add the subnav items to the friends nav item */ 74 74 bp_core_new_subnav_item( array( 'name' => __( 'My Friends', 'buddypress' ), 'slug' => 'my-friends', 'parent_url' => $friends_link, 'parent_slug' => $bp->friends->slug, 'screen_function' => 'friends_screen_my_friends', 'position' => 10, 'item_css_id' => 'friends-my-friends' ) ); 75 bp_core_new_subnav_item( array( 'name' => __( 'Requests', 'buddypress' ), 'slug' => 'requests', 'parent_url' => $friends_link, 'parent_slug' => $bp->friends->slug, 'screen_function' => 'friends_screen_requests', 'position' => 20, 'user_has_access' => bp_is_ home() ) );75 bp_core_new_subnav_item( array( 'name' => __( 'Requests', 'buddypress' ), 'slug' => 'requests', 'parent_url' => $friends_link, 'parent_slug' => $bp->friends->slug, 'screen_function' => 'friends_screen_requests', 'position' => 20, 'user_has_access' => bp_is_my_profile() ) ); 76 76 77 77 if ( $bp->current_component == $bp->friends->slug ) { 78 if ( bp_is_ home() ) {78 if ( bp_is_my_profile() ) { 79 79 $bp->bp_options_title = __( 'My Friends', 'buddypress' ); 80 80 } else { -
trunk/bp-groups.php
r2381 r2389 155 155 if ( $bp->current_component == $bp->groups->slug ) { 156 156 157 if ( bp_is_ home() && !$bp->is_single_item ) {157 if ( bp_is_my_profile() && !$bp->is_single_item ) { 158 158 159 159 $bp->bp_options_title = __( 'My Groups', 'buddypress' ); 160 160 161 } else if ( !bp_is_ home() && !$bp->is_single_item ) {161 } else if ( !bp_is_my_profile() && !$bp->is_single_item ) { 162 162 163 163 $bp->bp_options_avatar = bp_core_fetch_avatar( array( 'item_id' => $bp->displayed_user->id, 'type' => 'thumb' ) ); … … 1903 1903 ) ); 1904 1904 1905 do_action( 'bp_groups_posted_update', $content, $user_id, $group_id, $activity_id ); 1906 1905 1907 return $activity_id; 1906 1908 } -
trunk/bp-groups/bp-groups-classes.php
r2352 r2389 345 345 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 346 346 347 if ( !is_site_admin() )347 if ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) 348 348 $hidden_sql = "AND g.status != 'hidden'"; 349 349 … … 371 371 } 372 372 373 if ( !is_site_admin() )373 if ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) 374 374 $hidden_sql = "AND g.status != 'hidden'"; 375 375 … … 396 396 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 397 397 398 if ( !is_site_admin() )398 if ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) 399 399 $hidden_sql = " AND g.status != 'hidden'"; 400 400 … … 425 425 } 426 426 427 if ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) 428 $hidden_sql = " AND g.status != 'hidden'"; 429 427 430 if ( $search_terms ) { 428 431 $search_terms = like_escape( $wpdb->escape( $search_terms ) ); … … 450 453 $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ); 451 454 } 455 456 if ( !is_site_admin() && ( $user_id != $bp->loggedin_user->id ) ) 457 $hidden_sql = " AND g.status != 'hidden'"; 452 458 453 459 if ( $search_terms ) { … … 566 572 global $wpdb, $bp; 567 573 568 return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$bp->groups->table_name}" ) ); 574 if ( !is_site_admin() ) 575 $hidden_sql = "WHERE status != 'hidden'"; 576 577 return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$bp->groups->table_name} {$hidden_sql}" ) ); 569 578 } 570 579 … … 751 760 752 761 // If the user is logged in and viewing their own groups, we can show hidden and private groupss 753 if ( bp_is_home()) {762 if ( $user_id != $bp->loggedin_user->id ) { 754 763 $group_sql = $wpdb->prepare( "SELECT DISTINCT group_id FROM {$bp->groups->table_name_members} WHERE user_id = %d AND inviter_id = 0 AND is_banned = 0{$pag_sql}", $user_id ); 755 764 $total_groups = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(DISTINCT group_id) FROM {$bp->groups->table_name_members} WHERE user_id = %d AND inviter_id = 0 AND is_banned = 0", $user_id ) ); … … 775 784 } 776 785 777 if ( !bp_is_home())786 if ( $user_id != $bp->loggedin_user->id ) 778 787 $hidden_sql = " AND g.status != 'hidden'"; 779 788 … … 795 804 } 796 805 797 if ( !bp_is_home())806 if ( $user_id != $bp->loggedin_user->id ) 798 807 $hidden_sql = " AND g.status != 'hidden'"; 799 808 … … 815 824 } 816 825 817 if ( !bp_is_home())826 if ( $user_id != $bp->loggedin_user->id ) 818 827 $hidden_sql = " AND g.status != 'hidden'"; 819 828 … … 830 839 $user_id = $bp->displayed_user->id; 831 840 832 if ( bp_is_home() ) { 833 return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(DISTINCT group_id) FROM {$bp->groups->table_name_members} WHERE user_id = %d AND inviter_id = 0 AND is_banned = 0", $user_id ) ); 834 } else { 841 if ( $user_id != $bp->loggedin_user->id && !is_site_admin() ) { 835 842 return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(DISTINCT m.group_id) FROM {$bp->groups->table_name_members} m, {$bp->groups->table_name} g WHERE m.group_id = g.id AND g.status != 'hidden' AND m.user_id = %d AND m.inviter_id = 0 AND m.is_banned = 0", $user_id ) ); 843 } else { 844 return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(DISTINCT m.group_id) FROM {$bp->groups->table_name_members} m, {$bp->groups->table_name} g WHERE m.group_id = g.id AND m.user_id = %d AND m.inviter_id = 0 AND m.is_banned = 0", $user_id ) ); 836 845 } 837 846 } … … 924 933 925 934 // If the user is logged in and viewing their random groups, we can show hidden and private groups 926 if ( bp_is_ home() ) {935 if ( bp_is_my_profile() ) { 927 936 return $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT group_id FROM {$bp->groups->table_name_members} WHERE user_id = %d AND is_confirmed = 1 AND is_banned = 0 ORDER BY rand() LIMIT $total_groups", $user_id ) ); 928 937 } else { -
trunk/bp-messages.php
r2179 r2389 117 117 118 118 /* Add the subnav items to the profile */ 119 bp_core_new_subnav_item( array( 'name' => __( 'Inbox', 'buddypress' ) . $count_indicator, 'slug' => 'inbox', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_inbox', 'position' => 10, 'user_has_access' => bp_is_ home() ) );120 bp_core_new_subnav_item( array( 'name' => __( 'Sent Messages', 'buddypress' ), 'slug' => 'sentbox', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_sentbox', 'position' => 20, 'user_has_access' => bp_is_ home() ) );121 bp_core_new_subnav_item( array( 'name' => __( 'Compose', 'buddypress' ), 'slug' => 'compose', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_compose', 'position' => 30, 'user_has_access' => bp_is_ home() ) );119 bp_core_new_subnav_item( array( 'name' => __( 'Inbox', 'buddypress' ) . $count_indicator, 'slug' => 'inbox', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_inbox', 'position' => 10, 'user_has_access' => bp_is_my_profile() ) ); 120 bp_core_new_subnav_item( array( 'name' => __( 'Sent Messages', 'buddypress' ), 'slug' => 'sentbox', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_sentbox', 'position' => 20, 'user_has_access' => bp_is_my_profile() ) ); 121 bp_core_new_subnav_item( array( 'name' => __( 'Compose', 'buddypress' ), 'slug' => 'compose', 'parent_url' => $messages_link, 'parent_slug' => $bp->messages->slug, 'screen_function' => 'messages_screen_compose', 'position' => 30, 'user_has_access' => bp_is_my_profile() ) ); 122 122 123 123 if ( is_site_admin() ) … … 125 125 126 126 if ( $bp->current_component == $bp->messages->slug ) { 127 if ( bp_is_ home() ) {127 if ( bp_is_my_profile() ) { 128 128 $bp->bp_options_title = __( 'My Messages', 'buddypress' ); 129 129 } else { … … 305 305 do_action( 'messages_action_view_message' ); 306 306 307 bp_core_new_subnav_item( array( 'name' => sprintf( __( 'From: %s', 'buddypress'), BP_Messages_Thread::get_last_sender($thread_id) ), 'slug' => 'view', 'parent_url' => $bp->loggedin_user->domain . $bp->messages->slug . '/', 'parent_slug' => $bp->messages->slug, 'screen_function' => true, 'position' => 40, 'user_has_access' => bp_is_ home() ) );307 bp_core_new_subnav_item( array( 'name' => sprintf( __( 'From: %s', 'buddypress'), BP_Messages_Thread::get_last_sender($thread_id) ), 'slug' => 'view', 'parent_url' => $bp->loggedin_user->domain . $bp->messages->slug . '/', 'parent_slug' => $bp->messages->slug, 'screen_function' => true, 'position' => 40, 'user_has_access' => bp_is_my_profile() ) ); 308 308 bp_core_load_template( apply_filters( 'messages_template_view_message', 'members/single/home' ) ); 309 309 } -
trunk/bp-messages/bp-messages-templatetags.php
r2375 r2389 451 451 global $bp; 452 452 453 if ( bp_is_ home() || !is_user_logged_in() )453 if ( bp_is_my_profile() || !is_user_logged_in() ) 454 454 return false; 455 455 -
trunk/bp-themes/bp-default/registration/register.php
r2364 r2389 275 275 <?php endif; ?> 276 276 277 <?php else : ?>278 279 <p><?php _e( "We've fetched an avatar for your new account. If you'd like to change this you can use the <a href=\"http://gravatar.com\">Gravatar</a> service to upload a new one.", 'buddypress' ) ?></p>280 281 277 <?php endif; ?> 282 278 -
trunk/bp-themes/bp-sn-parent/activity/just-me.php
r2168 r2389 26 26 <h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?> <span><a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></span></h4> 27 27 28 <?php if ( is_user_logged_in() && bp_is_ home() ) : ?>28 <?php if ( is_user_logged_in() && bp_is_my_profile() ) : ?> 29 29 30 30 <form action="" method="post" id="whats-new-form" name="whats-new-form"> … … 54 54 <div class="activity"> 55 55 56 <?php if ( bp_has_activities( 'user_id=' . bp_displayed_user_id() . '&per_page=25&max=500&display_comments=stream&show_hidden=' . bp_is_ home() ) ) : ?>56 <?php if ( bp_has_activities( 'user_id=' . bp_displayed_user_id() . '&per_page=25&max=500&display_comments=stream&show_hidden=' . bp_is_my_profile() ) ) : ?> 57 57 58 58 <ul id="activity-list" class="activity-list item-list"> -
trunk/bp-themes/bp-sn-parent/groups/group-loop.php
r2168 r2389 50 50 </div> 51 51 52 <?php if ( bp_is_ home() ) : ?>52 <?php if ( bp_is_my_profile() ) : ?> 53 53 54 54 <?php do_action( 'bp_before_random_groups_list' ) ?> -
trunk/bp-themes/bp-sn-parent/profile/change-avatar.php
r2386 r2389 24 24 25 25 <p id="current-avatar"> 26 <?php bp_displayed_user_avatar( 'type=full' ) ?>26 <?php bp_displayed_user_avatar( 'type=full' ) ?> 27 27 <?php bp_displayed_user_avatar( 'type=thumb' ) ?> 28 28 </p> -
trunk/bp-themes/bp-sn-parent/profile/profile-loop.php
r2077 r2389 41 41 42 42 <div class="button-block"> 43 <?php if ( bp_is_ home() || is_site_admin() ) : ?>43 <?php if ( bp_is_my_profile() || is_site_admin() ) : ?> 44 44 45 45 <?php bp_edit_profile_button() ?> -
trunk/bp-xprofile.php
r2381 r2389 169 169 * @uses bp_core_add_nav_default() Sets which sub navigation item is selected by default 170 170 * @uses bp_core_add_subnav_item() Adds a sub navigation item to a nav item 171 * @uses bp_is_ home() Returns true if the current user being viewed is equal the logged in user171 * @uses bp_is_my_profile() Returns true if the current user being viewed is equal the logged in user 172 172 * @uses bp_core_fetch_avatar() Returns the either the thumb or full avatar URL for the user_id passed 173 173 */ … … 186 186 187 187 if ( $bp->current_component == $bp->profile->slug ) { 188 if ( bp_is_ home() ) {188 if ( bp_is_my_profile() ) { 189 189 $bp->bp_options_title = __( 'My Profile', 'buddypress' ); 190 190 } else { … … 215 215 216 216 /* Don't show this menu to non site admins or if you're viewing your own profile */ 217 if ( !is_site_admin() || bp_is_ home() )217 if ( !is_site_admin() || bp_is_my_profile() ) 218 218 return false; 219 219 ?> … … 270 270 * 271 271 * @package BuddyPress Xprofile 272 * @uses bp_is_ home() Checks to make sure the current user being viewed equals the logged in user272 * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user 273 273 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename) 274 274 */ … … 357 357 * 358 358 * @package BuddyPress Xprofile 359 * @uses bp_is_ home() Checks to make sure the current user being viewed equals the logged in user359 * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user 360 360 * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename) 361 361 */ … … 363 363 global $bp; 364 364 365 if ( !bp_is_ home() && !is_site_admin() )365 if ( !bp_is_my_profile() && !is_site_admin() ) 366 366 return false; 367 367 … … 432 432 check_admin_referer( 'bp_delete_avatar_link' ); 433 433 434 if ( !bp_is_ home() && !is_site_admin() )434 if ( !bp_is_my_profile() && !is_site_admin() ) 435 435 return false; 436 436
Note: See TracChangeset
for help on using the changeset viewer.