mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24:36 +00:00
Media: Use max-width for default captions.
This alters the HTML output of the image caption shortcode to use `max-width` instead of `width` to improve compatibility with flexible layouts. Props aaronrutley, desrosj. Fixes #33981. git-svn-id: https://develop.svn.wordpress.org/trunk@41724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -477,7 +477,7 @@ EOF;
|
||||
),
|
||||
array(
|
||||
'[caption caption="test" width="2"]<div>hello</div>[/caption]',
|
||||
'<div style="width: 12px" class="wp-caption alignnone"><div>hello</div><p class="wp-caption-text">test</p></div>',
|
||||
'<div style="max-width: 12px" class="wp-caption alignnone"><div>hello</div><p class="wp-caption-text">test</p></div>',
|
||||
),
|
||||
array(
|
||||
'<div [gallery]>',
|
||||
|
||||
Reference in New Issue
Block a user