WordPress.org

Make WordPress Core

Ticket #39886: 39886.diff

File 39886.diff, 889 bytes (added by adamsilverstein, 2 years ago)
  • src/wp-includes/js/swfupload/handlers.js

    diff --git src/wp-includes/js/swfupload/handlers.js src/wp-includes/js/swfupload/handlers.js
    index e27bd37..8251f05 100644
    function cancelUpload() { 
    356356
    357357// remember the last used image size, alignment and url
    358358jQuery(document).ready(function($){
    359         $('input[type="radio"]', '#media-items').live('click', function(){
     359        $( 'input[type="radio"]', '#media-items' ).on( 'click', function(){
    360360                var tr = $(this).closest('tr');
    361361
    362362                if ( $(tr).hasClass('align') )
    jQuery(document).ready(function($){ 
    365365                        setUserSetting('imgsize', $(this).val());
    366366        });
    367367
    368         $('button.button', '#media-items').live('click', function(){
     368        $( 'button.button', '#media-items' ).on( 'click', function(){
    369369                var c = this.className || '';
    370370                c = c.match(/url([^ '"]+)/);
    371371                if ( c && c[1] ) {