Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jul 10, 2024
1 parent 40bab19 commit c58cd76
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions buddypress/members/single/sidebar.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?php
// Get the displayed user's base domain
// This is required because the my-* pages aren't really displayed user pages from BP's
// point of view
$dud = bp_displayed_user_domain();
if ( ! $dud ) {
$dud = bp_loggedin_user_domain(); // will always be the logged in user on my-*
}

if ( ( bp_is_user_activity() || ! bp_current_component() ) && ! ( strpos( $post->post_name, 'my-' ) > -1 ) ) {
$mobile_hide = true;
Expand Down

0 comments on commit c58cd76

Please sign in to comment.