Make WordPress Core

Ticket #34527: 34527.3.patch

File 34527.3.patch, 610 bytes (added by swissspidy, 8 years ago)
  • src/wp-includes/js/wp-embed.js

    diff --git src/wp-includes/js/wp-embed.js src/wp-includes/js/wp-embed.js
    index db1fe5b..ea7f5eb 100644
     
    3131
    3232                        /* Resize the iframe on request. */
    3333                        if ( 'height' === data.message ) {
    34                                 height = data.value;
     34                                height = parseInt( data.value, 10 );
    3535                                if ( height > 1000 ) {
    3636                                        height = 1000;
    37                                 } else if ( height < 200 ) {
     37                                } else if ( ~~height < 200 ) {
    3838                                        height = 200;
    3939                                }
    4040
    41                                 source.height = (height) + 'px';
     41                                source.height = height;
    4242                        }
    4343
    4444                        /* Link to a specific URL on request. */