Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP adds p-tag to profile name whenever the profile gets edited. Why?

  • @panicky

    Participant

    Hi!

    Whenever someone updates their profile Buddypress automatically adds <p> Name Lastname </p>

    I can’t really figure out why, but I noticed it when the name in the profile-admin bar got messed up:

    And when I go My profile in WordPress it looks like this:

    I can remove the tags and update profile within wordpress and everything is ok again, but I can’t go on doing this with every single member whenever they update their profile via buddypress.

    How can I prevent this?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • @panicky

    Participant

    Nobody tha can help me here?

    Is it a filter or similar that is acting up? And if that’s the case, which filter file could it be?

    @hnla

    Participant

    I can’t replicate this issue on a fairly standard install running trunk, yes the BP display strings are wrapped in paragraph tags(nothing wrong in that) but I do not see that transposing to any edit screens in backend or on adminbar. Is it possible you have plugins running that might be involving themselves in the profile process?

    @panicky

    Participant

    It is this filter that causes the paragraph tag to force itself into the profilename:

    add_filter( 'xprofile_get_field_data', 'wpautop' ); located in the bp-xprofile directory.

    When I remove it everything is normal, but if I do them the bio-field that I have in members-header won’t have any line breaks at all.

    What can I do to compromise? Is there another filtervalue I can use?

    I’, sorry if this a bit jumbled up, but I’m sick as a dog this week…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BP adds p-tag to profile name whenever the profile gets edited. Why?’ is closed to new replies.
Skip to toolbar