Make WordPress Core


Ignore:
Timestamp:
03/16/2018 08:18:48 PM (7 years ago)
Author:
joemcgill
Message:

Revert max-width styles on caption shortcodes.

This is a partial revert of [41724], so image captions include an
inline width style instead of max-width.

This returns the caption shortcode to the pre-4.9.0 behavior, while
retaining the extra unit test coverage added in [41724].

Fixes #43123. See #33981.

Merges [42837] to the 4.9 branch.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/media.php

    r41964 r42838  
    126126
    127127        if ( current_theme_supports( 'html5', 'caption' ) ) {
    128             $this->assertEquals( 1, preg_match_all( "/max-width: 20/", $result, $_r ) );
     128            $this->assertEquals( 1, preg_match_all( '/width: 20/', $result, $_r ) );
    129129        } else {
    130             $this->assertEquals( 1, preg_match_all( "/max-width: 30/", $result, $_r ) );
     130            $this->assertEquals( 1, preg_match_all( '/width: 30/', $result, $_r ) );
    131131        }
    132132    }
Note: See TracChangeset for help on using the changeset viewer.