You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 289d4ad from 4.6.8 leads to double display of Wp-ulike button in a complicated edge case.
I use a WP template, Twenty Twenty-One, which is wired to do excerpts in the main (front page) "many posts" display. Jetpack offers a customatization (accessible in Appearance|Customize|Content Options|Blog Display|Full Post, which overrides that behavior and inserts the full post for an excerpt. The change in 289d4ad means that Wp-ulike button display is accomplished by both the excerpt and the content filter--yet, in this edge case, each of those filters fires when displaying a post and thus the button is duplicated. It's really caused by Jetpack, perhaps, not by Wp-ulike, but I doubt Jetpack can do anything about it, because they can't know anything about filters that fire.
What is needed is something that checks whether the button has already been placed on a post by any filter . . . I think.
Work around (for me) was to comment out add_filter( 'the_excerpt', 'wp_ulike_put_posts', 15 );
The text was updated successfully, but these errors were encountered:
Commit 289d4ad from 4.6.8 leads to double display of Wp-ulike button in a complicated edge case.
I use a WP template, Twenty Twenty-One, which is wired to do excerpts in the main (front page) "many posts" display. Jetpack offers a customatization (accessible in Appearance|Customize|Content Options|Blog Display|Full Post, which overrides that behavior and inserts the full post for an excerpt. The change in 289d4ad means that Wp-ulike button display is accomplished by both the excerpt and the content filter--yet, in this edge case, each of those filters fires when displaying a post and thus the button is duplicated. It's really caused by Jetpack, perhaps, not by Wp-ulike, but I doubt Jetpack can do anything about it, because they can't know anything about filters that fire.
What is needed is something that checks whether the button has already been placed on a post by any filter . . . I think.
Work around (for me) was to comment out
add_filter( 'the_excerpt', 'wp_ulike_put_posts', 15 );
The text was updated successfully, but these errors were encountered: