[buddypress-trac] [BuddyPress] #4909: Theme compat doubles the_content when using AddThis (was: Double display issues on nearly every page)

buddypress-trac noreply at wordpress.org
Wed Apr 3 19:47:22 UTC 2013


#4909: Theme compat doubles the_content when using AddThis
--------------------------+------------------
 Reporter:  offgridpro    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.8
Component:  Core          |     Version:
 Severity:  minor         |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+------------------
Changes (by boonebgorges):

 * keywords:  reporter-feedback => 2nd-opinion
 * severity:  normal => minor
 * milestone:  Awaiting Review => 1.8


Old description:

> On every BP page (default settings), there is a doubling of page content.

New description:

 On every BP page (default settings), there is a doubling of page content.

 [Edit: Only when using AddThis. See
 https://buddypress.trac.wordpress.org/ticket/4909#comment:11]

--

Comment:

 Thanks for your detective work, offgridpro. I've downloaded AddThis and
 reproduced the problem.

 The issue is that AddThis is doing something funky to the_content, and
 they're doing it *after* other filters have run. You can temporarily fix
 the problem by finding the following line in
 addthis/addthis_social_widget.php (around 1067):
 {{{
         add_filter('the_content', 'addthis_display_social_widget', 15);
 }}}
 and changing the number 15 to something less than 10, eg
 {{{
         add_filter('the_content', 'addthis_display_social_widget', 5);
 }}}

 It's possible that we could do a better job avoiding these kinds of
 conflict in BuddyPress. I'm moving this ticket to 1.8 so the dev team can
 discuss.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4909#comment:11>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list