From 2f0f413aa5c0047d35efd4430eafba65f4fc7dfb Mon Sep 17 00:00:00 2001
From: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Wed, 28 Mar 2018 01:51:29 +0000
Subject: [PATCH] Twenty Ten: Restore `max-width` on `.wp-caption`.

[42837] fixed the compatibility issue caused by [41724], returning the caption shortcode to the pre-4.9.0 behavior.

Reverts [42386].
Fixes #42604.
Built from https://develop.svn.wordpress.org/trunk@42886


git-svn-id: http://core.svn.wordpress.org/trunk@42716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
 wp-content/themes/twentyten/style.css | 3 +--
 wp-includes/version.php               | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css
index 9012246ce0..d73dadd075 100644
--- a/wp-content/themes/twentyten/style.css
+++ b/wp-content/themes/twentyten/style.css
@@ -803,8 +803,6 @@ 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. */
@@ -839,6 +837,7 @@ 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;
 }
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 5762130a4c..f63f6004eb 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '5.0-alpha-42881';
+$wp_version = '5.0-alpha-42886';
 
 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.