Skip to:
Content

BuddyPress.org

Opened 3 years ago

Last modified 2 years ago

#7466 reopened defect (bug)

Activity Content Filter Priority and Slashes

Reported by: wilcosky Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.0
Component: Core Keywords:
Cc:

Description

Most likely due to other plugins, periodically, the stripslashes filter is not working. Slashes appear in the activity feed. The current priority level is 5. By changing the level down one to 4, this resolves the issue. Should the priority level be changed to 4 or lower in future releases?

bp-activity-filters.php

Change History (3)

#1 @tw2113
2 years ago

Curious what plugins are involved when it happens.

#2 @DJPaul
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

We'll need more information how to recreate before we can consider. Thanks.

#3 @magland
2 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

I also had backslashes appearing in my activity stream.
Adding the following to my bp-custom.php appears to solve the issue:

<?php
add_filter( 'bp_get_activity_content_body',          'stripslashes_deep', 1 );
Note: See TracTickets for help on using tickets.