WordPress.org

Make WordPress Core

Changeset 29430


Ignore:
Timestamp:
08/07/2014 06:19:29 AM (6 years ago)
Author:
wonderboymusic
Message:

Video: use auto instead of actual height for the responsive wrapper in generated markup.

See #29110.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r29429 r29430  
    7272
    7373    if ( h ) {
    74         h_rule = ' height: ' + h + 'px;';
     74        h_rule = ' height: auto';
    7575    }
    7676#>
     
    298298                    }
    299299                    if ( data.height ) {
    300                         h_rule = ' height: ' + data.height + 'px;';
     300                        h_rule = ' height: auto';
    301301                    }
    302302                #>
  • trunk/src/wp-includes/media.php

    r29429 r29430  
    18811881    if ( ! empty( $atts['height'] ) ) {
    18821882        $height_rule = sprintf( ' height: %dpx;', $atts['height'] );
     1883    } else {
     1884        $height_rule = ' height: auto;';
    18831885    }
    18841886    $output = sprintf( '<div style="max-width: 100%%;%s%s" class="wp-video">%s</div>', $width_rule, $height_rule, $html );
Note: See TracChangeset for help on using the changeset viewer.