Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#5067 closed enhancement (fixed)

If mentions are disabled @username may not show in member's header

Reported by: imath's profile imath Owned by: boonebgorges's profile boonebgorges
Milestone: 1.8 Priority: normal
Severity: normal Version: 1.8
Component: Members Keywords: has-patch
Cc:

Description

I've tested the new filter introduced in 1.8 to disable mentions, and while displaying a member's profile, i thought may be the mention @username in the member's header should not show as it's goal is to inform how to mention a user.
so just in case, i've attached the diff to disable this information in case the mentions are disabled.

Attachments (1)

5067.diff (2.7 KB) - added by imath 12 years ago.

Download all attachments as: .zip

Change History (5)

@imath
12 years ago

#1 follow-up: @boonebgorges
12 years ago

  • Milestone changed from Awaiting Review to 1.8

Good catch, imath.

I think that your patch is a bit more complex than what we really need. Burying the theme compat check inside of a template function seems wrong to me, especially since we're moving away from bp-default. And we generally prefer to avoid creating markup inside of functions if we can help it.

This is a case where the best solution is the simplest: putting bp_activity_do_mentions() checks right into the templates.

#2 @boonebgorges
12 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 7232:

Don't show @username in member headers if mentions are disabled

It's unnecessary and misleading to show this information when mentions have
been turned off.

Fixes #5067

Props imath for inital patch

#3 in reply to: ↑ 1 @imath
12 years ago

Replying to boonebgorges:

This is a case where the best solution is the simplest.

Hi Boone, thanks for your explanation and i completely agree :)

#4 @johnjamesjacoby
10 years ago

  • Version changed from 1.8-beta to 1.8
Note: See TracTickets for help on using tickets.