]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/media-upload.js
WordPress 4.5
[autoinstalls/wordpress.git] / wp-admin / js / media-upload.js
index 011b618ff56e288704233704825ff65c7e70d437..cd969b9b3a483555eb269bc2c459ae87402155d8 100644 (file)
@@ -47,7 +47,7 @@ var tb_position;
                        adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
                }
 
-               if ( tbWindow.size() ) {
+               if ( tbWindow.length ) {
                        tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
                        $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
                        tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});