Make WordPress Core

Ticket #29887: 29887.patch

File 29887.patch, 606 bytes (added by jasonlcrane, 12 years ago)
  • src/wp-includes/js/mediaelement/wp-mediaelement.js

     
    2828                        }
    2929                };
    3030
     31                // mediaelement needs the height that wp sets on .wp-video to correctly size the player
     32                // but the container height should be set to auto for responsive video embeds
     33                $('.wp-video').css('height', 'auto');
     34
    3135                $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer( settings );
    3236        });
    3337