[wp-trac] [WordPress Trac] #42203: Ensure media & embeds in Text widget are styled properly across widget areas in bundled themes
WordPress Trac
noreply at wordpress.org
Fri Oct 13 03:11:38 UTC 2017
#42203: Ensure media & embeds in Text widget are styled properly across widget
areas in bundled themes
----------------------------+-----------------
Reporter: westonruter | Owner:
Type: task (blessed) | Status: new
Priority: high | Milestone: 4.9
Component: Widgets | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------
The Text widget now allows for media to be embedded within it as of
#40854. There is an Add Media button allowing for images, videos, and
other embeds to be added to the content. Themes may not have styles in
them that expect media to appear in a Text widget context, since
previously they may have only appeared in post content. As noted in
§Default Themes Updates for [https://make.wordpress.org/core/2017/05/26
/media-widgets-for-images-video-and-audio/ Media Widgets for Images,
Video, and Audio]:
> Themes that add custom styles to the MediaElement.js player (namely
Twenty Thirteen and Twenty Fourteen) were updated from just styling it
within syndicated content, to also include instances within widgets. Most
themes don’t restrict styles for captioned images or media players to just
post content, that is, limit CSS selectors to classes output by
post_class(). If your theme does, make sure to either remove that
constraint or include a .widget selector.
In the same way for the embeds in the Text widget, we need to make sure
that all of the core themes are compatible. Text widgets need to be tested
in all core themes and in each of their widget areas.
Once the core themes are updated then the changes will may be instructive
for theme authors to make similar changes in their themes.
See same task for Gallery widget in #41969.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42203>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list