jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Display Posts Widget shows Sharing buttons if "show excerpt" option is set

Open dereksmart opened this issue 10 years ago • 11 comments

  1. Delete all transients from your site.
  2. Make sure Sharing is active, and that there are buttons to display.
  3. Add a Display Posts widget to any sidebar
  4. Use your own domain as the Blog URL
  5. Make sure "show excerpts" is checked
  6. See that each post displayed in the widget has sharing buttons.

Expected: no sharing buttons should appear in the widget at all.

Note: does not happen when querying posts from a wordpress.com site

dereksmart avatar Jan 18 '16 17:01 dereksmart

This is only happening for some sites, and persists even if Sharing is inactive.

For example, try pulling from dereksmart.wpsandbox.me or csonnek.wpsandbox.me

dereksmart avatar Jan 18 '16 17:01 dereksmart

this only happens with #3207 JK it happens in master too.

dereksmart avatar Jan 18 '16 17:01 dereksmart

As this was recently in my domain I will check it out :)

bisko avatar Jan 18 '16 19:01 bisko

Update: I can only reproduce this when the remote site has BOTH of these options checked

screen shot 2016-01-18 at 2 43 37 pm

dereksmart avatar Jan 18 '16 19:01 dereksmart

It seems that Sharedaddy adds the share buttons to the excerpts and that is the content that is returned by the remote site.

It is reproduced on both master and #3207 as the code that runs them is the same - just render what is returned in the excerpt.

bisko avatar Jan 18 '16 20:01 bisko

I'd be tempted to move this to the 3.9 milestone We'll want to avoid adding so many new elements to all the sites that use the Display Posts widget.

jeherve avatar Jan 19 '16 11:01 jeherve

@bisko let me know this is broken in the current widget as well. Moving this back to 3.9.1.

jeherve avatar Jan 19 '16 11:01 jeherve

@jeherve @dereksmart what do you think of an approach similar to #3612? Having an action do the code insertion looks far better to me than using a filter.

zinigor avatar Apr 04 '16 07:04 zinigor

@zinigor This could work, yes.

jeherve avatar Apr 04 '16 15:04 jeherve

Hmm, I can no longer reproduce with a site that has tries to receive posts from another site with Sharing set to exactly these settings.

zinigor avatar Mar 20 '18 19:03 zinigor

I couldn't reproduce either. Tried every piece of tip left here (sites and settings details). But testing this was useful to come up with #9107. Closing this one. @dereksmart please reopen if you can still reproduce

oskosk avatar Mar 21 '18 13:03 oskosk