On attachment pages for audio and video, display players. Currently, only a link is displayed. Add minimal CSS rules for compatibility with 2011, 2012, and 2013 themes.
In `prepend_attachment`, add logic to support attachment types that are not `image`. In `get_post_class()`, don't add the `has-post-thumbnail` class for attachment pages. Fixes #27243. Built from https://develop.svn.wordpress.org/trunk@27622 git-svn-id: http://core.svn.wordpress.org/trunk@27465 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b8455a26c
commit
3ba8dd6604
11
style.css
11
style.css
|
@ -1007,6 +1007,17 @@ footer.entry-meta {
|
|||
margin-top: 1.571428571rem;
|
||||
}
|
||||
|
||||
/* =Single audio/video attachment view
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.attachment .entry-content .mejs-audio {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.attachment .entry-content .mejs-container {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
|
||||
/* =Single image attachment view
|
||||
-------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue