[buddypress-trac] [BuddyPress Trac] #4265: WP 3.4/BP1.5.6 – issue with quotes on SWA
buddypress-trac
noreply at wordpress.org
Fri Feb 14 14:23:17 UTC 2014
#4265: WP 3.4/BP1.5.6 – issue with quotes on SWA
-----------------------------------+-----------------------------
Reporter: chouf1 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Activity | Version: 1.7
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+-----------------------------
Comment (by needle):
Wanted to bump this ticket because I've just had a couple of clients
notify me that their activity items don't render correctly. I realise that
`wptexturize()` can behave oddly when there's whitespace between quotes
and text, but standard usage should be supported at minimum. imath's
analysis seems spot on and his patch (which I implement via a plugin)
sorts the issue out for me, but ideally that shouldn't really be
necessary.
In the meantime, here's the ncode for anyone who runs into this and
doesn't want to alter BP core:
{{{
// remove existing filters
remove_filter( 'bp_get_activity_action', 'wptexturize' );
remove_filter( 'bp_get_activity_content_body', 'wptexturize' );
remove_filter( 'bp_get_activity_content', 'wptexturize' );
remove_filter( 'bp_get_activity_parent_content', 'wptexturize' );
remove_filter( 'bp_get_activity_latest_update', 'wptexturize' );
remove_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize' );
// re-add after stripslashes_deep
add_filter( 'bp_get_activity_action', 'wptexturize', 11 );
add_filter( 'bp_get_activity_content_body', 'wptexturize', 11 );
add_filter( 'bp_get_activity_content', 'wptexturize', 11 );
add_filter( 'bp_get_activity_parent_content', 'wptexturize', 11 );
add_filter( 'bp_get_activity_latest_update', 'wptexturize', 11 );
add_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize', 11 );
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4265#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list