Skip to content

Commit

Permalink
Twenty Ten: Use global img contraint for captions
Browse files Browse the repository at this point in the history
Fixes an incompatibility with the way caption width is set since 4.9, where the caption element would cover the whole content width.

Props slilley, Clorith, hardeepasrani.
Fixes #42604.

Built from https://develop.svn.wordpress.org/trunk@42386


git-svn-id: http://core.svn.wordpress.org/trunk@42215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
obenland committed Dec 11, 2017
1 parent 46cbfc4 commit d6ffe16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wp-content/themes/twentyten/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,8 @@ img.size-full,
img.size-large,
img.size-medium,
.attachment img,
.entry-content img,
.wp-caption img,
.widget-container img {
max-width: 100%; /* When images are too wide for containing element, force them to fit. */
height: auto; /* Override height to match resized width for correct aspect ratio. */
Expand Down Expand Up @@ -837,7 +839,6 @@ img.aligncenter {
background: #f1f1f1;
line-height: 18px;
margin-bottom: 20px;
max-width: 632px !important; /* prevent too-wide images from breaking layout */
padding: 4px;
text-align: center;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42385';
$wp_version = '5.0-alpha-42386';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit d6ffe16

Please sign in to comment.