Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 3 years ago

#26335 closed defect (bug) (fixed)

Twenty Fourteen: Ephemera Widget caches plugin filtering (and lack of plugin filtering) of the_content

Reported by: celloexpressions Owned by: lancewillett
Priority: normal Milestone: 3.8
Component: Bundled Theme Version: 3.8
Severity: normal Keywords:
Cc: Focuses:

Description

Many plugins filter the_content() to add things like social sharing buttons.

The Twenty Fourteen Ephemera Widget currently ignores the potential for plugins to change the contents of the widget. For plugins that rely on external css/js files for their functionality, deactivating the plugin will remove those assets but leave the html markup displayed. This creates a bad user experience because the plugin appears to not be removed even after deleting all of its files.

Example steps to reproduce:

  1. Install & activate a plugin such as ​QuickShare
  2. Add the Twenty Fourteen Ephemera Widget to a sidebar
  3. Uninstall QuickShare

The html needed by QuickShare is still present in the widget. Removing and re-adding the widget fixes it.

One solution would be to prevent plugins' filters from ever applying to the widget's the_content, as they are almost never desirable for display in a widget. I'm currently hiding QuickShare from the widget with css.

Change History (4)

#1 @dimadin
13 years ago

Related (duplicate?): #26210

#2 @lancewillett
13 years ago

  • Owner set to lancewillett
  • Resolution → fixed
  • Status new → closed

In 26577:

Twenty Fourteen: remove transient usage in Ephemera widget to fix caching issues. Props obenland, closes #26210 and #26335.

#3 @lancewillett
13 years ago

  • Milestone Awaiting Review

#4 @SergeyBiryukov
13 years ago

  • Milestone → 3.8
  • Version → trunk
Note: See TracTickets for help on using tickets.